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

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

parent fb6350e5
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ class TheJob: ...@@ -112,7 +112,7 @@ class TheJob:
elif s == db.JobState.running: elif s == db.JobState.running:
# Může se stát, že ho mezitím začal vyřizovat jiný proces # Může se stát, že ho mezitím začal vyřizovat jiný proces
return 'právě běží' 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ý' return None if retry else 'je už hotový'
else: else:
return 'je v neznámém stavu' return 'je v neznámém stavu'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment