Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Unset assigned_subtask on resource failure
Browse files Browse the repository at this point in the history
  • Loading branch information
maaktweluit committed Apr 30, 2019
1 parent 8246003 commit b979e5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions golem/task/taskcomputer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def resource_collected(self, res_id):

def resource_failure(self, res_id, reason):
subtask = self.assigned_subtask
self.assigned_subtask = None
if not subtask or subtask['task_id'] != res_id:
logger.error("Resource failure for a wrong task, %s", res_id)
return
Expand Down

0 comments on commit b979e5f

Please # to comment.