#NEWLINE# def generate_schedule( self , load ) : #NEWLINE# #INDENT# self . schedule_file = self . execution . get ( 'schedule-file' , None ) #NEWLINE# if ( self . schedule_file is None ) : #NEWLINE# #INDENT# self . schedule_file = self . engine . create_artifact ( 'pbench' , '.sched' ) #NEWLINE# self . log . info ( 'Generating request schedule file: %s' , self . schedule_file ) #NEWLINE# with open ( self . payload_file , 'rb' ) as pfd : #NEWLINE# #INDENT# scheduler = Scheduler ( load , pfd , self . log ) #NEWLINE# with open ( self . schedule_file , 'wb' ) as sfd : #NEWLINE# #INDENT# self . _write_schedule_file ( pfd , scheduler , sfd ) #NEWLINE# #UNINDENT# #UNINDENT# self . log . info ( 'Done generating schedule file' )