Skip to content

Commit 1f68cbe

Browse files
authored
Remove spurious double set of task time_returned (#3999)
This is set again 2 lines later, and the only potential for use is a call to update_task_state, which does not use time_returned. The time is set for the purposes of the subsequent _send_task_log_info. # Changed Behaviour none ## Type of change - Code maintenance/cleanup
1 parent 1aff212 commit 1f68cbe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

parsl/dataflow/dflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ def handle_exec_update(self, task_record: TaskRecord, future: Future) -> None:
377377
else:
378378
logger.exception("Task {} failed after {} retry attempts".format(task_id,
379379
task_record['try_id']))
380-
task_record['time_returned'] = datetime.datetime.now()
381380
self.update_task_state(task_record, States.failed)
382381
task_record['time_returned'] = datetime.datetime.now()
383382
self._send_task_log_info(task_record)

0 commit comments

Comments
 (0)