#NEWLINE# def __init__( self , task , worker_id , result_queue , tracking_url_callback , status_message_callback , random_seed = False , worker_timeout = 0 ) : #NEWLINE# #INDENT# super ( TaskProcess , self ) . __init__ ( ) #NEWLINE# self . task = task #NEWLINE# self . worker_id = worker_id #NEWLINE# self . result_queue = result_queue #NEWLINE# self . tracking_url_callback = tracking_url_callback #NEWLINE# self . status_message_callback = status_message_callback #NEWLINE# self . random_seed = random_seed #NEWLINE# if ( task . worker_timeout is not None ) : #NEWLINE# #INDENT# worker_timeout = task . worker_timeout #NEWLINE# #UNINDENT# self . timeout_time = ( ( time . time ( ) + worker_timeout ) if worker_timeout else None )