Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workflow_concepts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
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
payno
workflow_concepts
Commits
aeff08c2
Commit
aeff08c2
authored
3 years ago
by
Wout De Nolf
Browse files
Options
Downloads
Patches
Plain Diff
esrftaskgraph: Task.done when not outputs
parent
3612535c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
esrftaskgraph/esrftaskgraph/task.py
+7
-1
7 additions, 1 deletion
esrftaskgraph/esrftaskgraph/task.py
with
7 additions
and
1 deletion
esrftaskgraph/esrftaskgraph/task.py
+
7
−
1
View file @
aeff08c2
...
...
@@ -58,6 +58,7 @@ class Task(Registered, hashing.UniversalHashable, register=False):
# Misc
self
.
_exception
=
None
self
.
_done
=
None
# The output hash will update dynamically if any of the input
# variables change
...
...
@@ -191,7 +192,10 @@ class Task(Registered, hashing.UniversalHashable, register=False):
@property
def
done
(
self
):
"""
Completed (with or without exception)
"""
return
self
.
failed
or
self
.
_outputs
.
has_value
if
self
.
_OUTPUT_NAMES
:
return
self
.
failed
or
self
.
_outputs
.
has_value
else
:
return
self
.
_done
or
self
.
failed
@property
def
failed
(
self
):
...
...
@@ -232,6 +236,8 @@ class Task(Registered, hashing.UniversalHashable, register=False):
self
.
_exception
=
e
if
raise_on_error
:
raise
else
:
self
.
_done
=
True
def
run
(
self
):
"""
To be implemented by the derived classes
"""
...
...
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