Skip to content

Commit

Permalink
fix retry count set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyeqiannian committed Nov 10, 2023
1 parent 3f7511e commit ab7f249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdispatcher/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def handle_unexpected_job_state(self):
)
retry_count = 3
assert self.machine is not None
if hasattr(self.machine, "retry_count") and self.machine.retry_count > 0:
if hasattr(self.machine, "retry_count") and self.machine.retry_count >= 0:
retry_count = self.machine.retry_count + 1
if (self.fail_count) > 0 and (self.fail_count % retry_count == 0):
last_error_message = self.get_last_error_message()
Expand Down

0 comments on commit ab7f249

Please sign in to comment.