#NEWLINE# def taskProgress( self , task ) : #NEWLINE# #INDENT# t = self . taskProgressTimes [ task ] #NEWLINE# now = time . time ( ) #NEWLINE# if ( ( now - self . taskStartTimes [ task ] ) < self . runLimit ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( self . taskProgressTimes [ task ] == ( - 1 ) ) : #NEWLINE# #INDENT# self . client . taskStarted ( task ) #NEWLINE# #UNINDENT# if ( ( now - self . taskProgressTimes [ task ] ) >= self . updateLimit ) : #NEWLINE# #INDENT# self . taskProgressTimes [ task ] = now #NEWLINE# self . client . taskProgress ( task )