Skip to content
Snippets Groups Projects
Commit 43cca768 authored by Martin Mareš's avatar Martin Mareš
Browse files

Joby: I po interní chybě se smí udělat retry

parent d8a9521e
Branches
No related tags found
1 merge request!113Stav "opraveno"
This commit is part of merge request !113. Comments created here will be created in the context of that merge request.
......@@ -112,7 +112,7 @@ class TheJob:
elif s == db.JobState.running:
# Může se stát, že ho mezitím začal vyřizovat jiný proces
return 'právě běží'
elif s in (db.JobState.done, db.JobState.failed):
elif s in (db.JobState.done, db.JobState.failed, db.JobState.internal_error):
return None if retry else 'je už hotový'
else:
return 'je v neznámém stavu'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment