#NEWLINE# def check_complete( task , out_queue ) : #NEWLINE# #INDENT# '\n    Checks if task is complete, puts the result to out_queue.\n    ' #NEWLINE# logger . debug ( 'Checking if %s is complete' , task ) #NEWLINE# try : #NEWLINE# #INDENT# is_complete = task . complete ( ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# is_complete = TracebackWrapper ( traceback . format_exc ( ) ) #NEWLINE# #UNINDENT# out_queue . put ( ( task , is_complete ) )