#NEWLINE# def _serialiseExistingJob( self , jobWrapper , jobStore , returnValues ) : #NEWLINE# #INDENT# '\n        Serialise an existing job.\n        ' #NEWLINE# self . _serialiseJobGraph ( jobWrapper , jobStore , returnValues , False ) #NEWLINE# jobWrapper . command = None #NEWLINE# assert ( len ( jobWrapper . stack ) >= 4 ) #NEWLINE# combinedChildren = ( jobWrapper . stack [ ( - 1 ) ] + jobWrapper . stack [ ( - 3 ) ] ) #NEWLINE# combinedFollowOns = ( jobWrapper . stack [ ( - 2 ) ] + jobWrapper . stack [ ( - 4 ) ] ) #NEWLINE# jobWrapper . stack = jobWrapper . stack [ : ( - 4 ) ] #NEWLINE# if ( len ( combinedFollowOns ) > 0 ) : #NEWLINE# #INDENT# jobWrapper . stack . append ( combinedFollowOns ) #NEWLINE# #UNINDENT# if ( len ( combinedChildren ) > 0 ) : #NEWLINE# #INDENT# jobWrapper . stack . append ( combinedChildren )