Skip to content

Commit

Permalink
Merge pull request #978 from GowthamShanmugam/unmanage_fail_fix
Browse files Browse the repository at this point in the history
unmanaged task always fails after import failure
  • Loading branch information
r0h4n authored May 29, 2018
2 parents c39c399 + da0f882 commit 153c6e9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ def run(self):
)
return False
time.sleep(10)
finished = True
completed = True
for child_job_id in parent_job.children:
child_job = NS.tendrl.objects.Job(
job_id=child_job_id
).load()
if child_job.status != "finished":
finished = False
if child_job.status not in ["finished", "failed"]:
completed = False
break
if finished:
if completed:
break
else:
loop_count += 1
Expand Down

0 comments on commit 153c6e9

Please sign in to comment.