#NEWLINE# def make_generic_task( uids , task ) : #NEWLINE# #INDENT# task = { #NEWLINE# #INDENT# 'id' : task . get ( 'id' ) , #NEWLINE# 'task_name' : task . get ( 'task_name' ) , #NEWLINE# 'type' : task [ 'type' ] , #NEWLINE# 'uids' : uids , #NEWLINE# 'fail_on_error' : task . get ( 'fail_on_error' , True ) , #NEWLINE# 'parameters' : task . get ( 'parameters' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# } #NEWLINE# task [ 'parameters' ] . setdefault ( 'cwd' , '/' ) #NEWLINE# return uids