Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MO-P
Odevzdávací Systém MO
Commits
b07bcd3d
Commit
b07bcd3d
authored
Jan 15, 2022
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/jobs/__init__.py
+1
-1
1 addition, 1 deletion
mo/jobs/__init__.py
with
1 addition
and
1 deletion
mo/jobs/__init__.py
+
1
−
1
View file @
b07bcd3d
...
@@ -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
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment