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
43cca768
Project 'mj/mo-submit' was moved to 'mo-p/osmo'. Please update any links and bookmarks that may still have the old path.
Commit
43cca768
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
d8a9521e
Branches
Branches containing commit
No related tags found
1 merge request
!113
Stav "opraveno"
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 @
43cca768
...
...
@@ -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
'
...
...
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