stop jobs that do not start within 30 days (#565)

If a job does not start within 30 days, stop the job and mark all of the tasks as `failed`.
This commit is contained in:
bmc-msft
2021-02-19 16:23:35 -05:00
committed by GitHub
parent 305c23a4d9
commit 4de19ffe5e
2 changed files with 39 additions and 3 deletions

View File

@ -38,6 +38,8 @@ def main(mytimer: func.TimerRequest, dashboard: func.Out[str]) -> None: # noqa:
schedule_tasks()
Job.stop_never_started_jobs()
events = get_events()
if events:
dashboard.set(events)