Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
nomad-FAIR
Commits
5a7d2a99
Commit
5a7d2a99
authored
6 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Repeatable processing tasks after worker failures.
parent
97d7f0f9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!34
Merged latest changes torwards 4.2.
Pipeline
#44755
passed
6 years ago
Stage: build
Stage: test
Stage: release
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nomad/processing/base.py
+7
-0
7 additions, 0 deletions
nomad/processing/base.py
with
7 additions
and
0 deletions
nomad/processing/base.py
+
7
−
0
View file @
5a7d2a99
...
...
@@ -244,6 +244,13 @@ class Proc(Document, metaclass=ProcMetaclass):
assert
task
in
tasks
,
'
task %s must be one of the classes tasks %s
'
%
(
task
,
str
(
tasks
))
# pylint: disable=E1135
if
self
.
current_task
is
None
:
assert
task
==
tasks
[
0
],
"
process has to start with first task
"
# pylint: disable=E1136
elif
tasks
.
index
(
task
)
<=
tasks
.
index
(
self
.
current_task
):
# task is repeated, probably the celery task of the process was reschedule
# due to prior worker failure
self
.
current_task
=
task
self
.
get_logger
().
warning
(
'
task is re-run
'
)
self
.
save
()
return
True
else
:
assert
tasks
.
index
(
task
)
==
tasks
.
index
(
self
.
current_task
)
+
1
,
\
"
tasks must be processed in the right order
"
...
...
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
register
or
sign in
to comment