taskgraph.cron package

Submodules

taskgraph.cron.decision module

taskgraph.cron.decision.make_decision_task(params, root, symbol, arguments=[], head_rev=None)

Generate a basic decision task, based on the root .taskcluster.yml

taskgraph.cron.decision.run_decision_task(job, params, root)

taskgraph.cron.schema module

taskgraph.cron.schema.even_15_minutes(minutes)
taskgraph.cron.schema.validate(cron_yml)

taskgraph.cron.util module

taskgraph.cron.util.calculate_head_rev(root)
taskgraph.cron.util.match_utc(params, sched)

Return True if params[‘time’] matches the given schedule.

If minute is not specified, then every multiple of fifteen minutes will match. Times not an even multiple of fifteen minutes will result in an exception (since they would never run). If hour is not specified, any hour will match. Similar for day and weekday.

Module contents

taskgraph.cron.calculate_time(options)
taskgraph.cron.load_jobs(params, root)
taskgraph.cron.run_job(job_name, job, params, root)
taskgraph.cron.should_run(job, params)
taskgraph.cron.taskgraph_cron(options)