Update main.py
Browse files
main.py
CHANGED
@@ -90,6 +90,9 @@ def schedule_periodic_task():
|
|
90 |
start_time = '05:00'
|
91 |
logger.info(f'Scheduling tasks to run every day at: {start_time} UTC+00')
|
92 |
schedule.every().day.at(start_time).do(main)
|
|
|
|
|
|
|
93 |
|
94 |
while True:
|
95 |
schedule.run_pending()
|
|
|
90 |
start_time = '05:00'
|
91 |
logger.info(f'Scheduling tasks to run every day at: {start_time} UTC+00')
|
92 |
schedule.every().day.at(start_time).do(main)
|
93 |
+
elif frequency == 'custom':
|
94 |
+
logger.info(f'Scheduling tasks to run every 3 hours at the top of the hour')
|
95 |
+
schedule.every(3).hours.at(":00").do(main)
|
96 |
|
97 |
while True:
|
98 |
schedule.run_pending()
|