Skip to content

Commit 81986e1

Browse files
committed
add INTERVAL_SCHEDULE_SECS by environ
1 parent e8f2ccf commit 81986e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/clock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def tick():
1414
logger.info(f"[Tock! Job enqueued for {date_time_to_check}")
1515

1616
if __name__ == '__main__':
17-
INTERVAL_SCHEDULE_SECS = 5
17+
INTERVAL_SCHEDULE_SECS = os.environ.get('INTERVAL_SCHEDULE_SECS', 5)
1818
logger = init_logging('clock')
1919
logger.info('Starting scheduler. Interval %s' % INTERVAL_SCHEDULE_SECS)
2020

0 commit comments

Comments
 (0)