Skip to content

Commit 95fe2c9

Browse files
Worker cron fix (#274)
1 parent ec74fac commit 95fe2c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tcsocket/app/worker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ async def kill_worker(ctx):
238238

239239
class WorkerSettings:
240240
functions = [get_image, submit_booking, submit_enquiry, update_contractors, update_enquiry_options]
241-
cron_jobs = [cron(delete_old_appointments, hour={0, 3, 6, 9, 12, 15, 18, 21}), cron(kill_worker, hour=3)]
241+
cron_jobs = [
242+
cron(delete_old_appointments, hour={0, 3, 6, 9, 12, 15, 18, 21}, minute=0),
243+
cron(kill_worker, hour=3, minute=0),
244+
]
242245
on_startup = startup
243246
on_shutdown = shutdown
244247

0 commit comments

Comments
 (0)