Commit 6272bcc0 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Print cron job schedule on startup

parent 0f0be2c8
Pipeline #20561 passed with stages
in 12 minutes and 30 seconds
......@@ -41,6 +41,9 @@ def create_schedule(script):
def run_cron(script):
# type: (Script) -> None
schedule = create_schedule(script)
logging.info('Cron job schedule:')
for job in schedule.jobs:
logging.info('%r', job)
while True:
schedule.run_pending()
delay = schedule.idle_seconds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment