#NEWLINE# def task_finished( self , nick , message , channel , task_id ) : #NEWLINE# #INDENT# task = self . tasks [ int ( task_id ) ] #NEWLINE# task . done ( nick ) #NEWLINE# self . conn_logger . info ( ( 'task [%s] finished by worker %s' % ( task . id , nick ) ) ) #NEWLINE# self . logger . info ( ( '%s:%s:%s' % ( self . id , nick , task . data ) ) ) #NEWLINE# if task . is_finished ( ) : #NEWLINE# #INDENT# self . send_user ( ( 'Task %s completed by %s workers' % ( task . id , len ( task . data ) ) ) )