Skip to content

Commit

Permalink
fix retry
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetretto committed Nov 10, 2023
1 parent a60d5c5 commit 20b9c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobflow_remote/jobs/jobcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def retry_job(
)
raise ValueError(f"No Job matching criteria {lock_filter}")
state = JobState(doc["state"])
if state != JobState.REMOTE_ERROR:
if state == JobState.REMOTE_ERROR:
previous_state = doc["previous_state"]
try:
JobState(previous_state)
Expand Down

0 comments on commit 20b9c33

Please sign in to comment.