Event based webhooks (#296)

This commit is contained in:
bmc-msft
2020-11-12 17:44:42 -05:00
committed by GitHub
parent 693c988854
commit 31f099d3d4
24 changed files with 2133 additions and 35 deletions

View File

@ -67,8 +67,7 @@ class Job(BASE_JOB, ORMMixin):
if not_stopped:
for task in not_stopped:
task.state = TaskState.stopping
task.save()
task.mark_stopping()
else:
self.state = JobState.stopped
self.save()