Skip to content

Commit

Permalink
Added the new pipeline validation to the Container.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Liang committed Feb 15, 2019
1 parent 5928cee commit 8aa8c8d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kive/container/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,7 @@ def pipeline_valid(pipeline):
"""
# noinspection PyBroadException
try:
# TODO: use a PipelineCompletionStatus object here
return min(len(pipeline['inputs']),
len(pipeline['steps']),
len(pipeline['outputs'])) > 0
return PipelineCompletionStatus(pipeline).is_complete()
except Exception:
return False

Expand Down

0 comments on commit 8aa8c8d

Please sign in to comment.