diff --git a/debian/uwsgi.ini b/debian/uwsgi.ini index 41ca2d17..708711d6 100644 --- a/debian/uwsgi.ini +++ b/debian/uwsgi.ini @@ -18,19 +18,19 @@ spooler-python-import = hobo.provisionning.spooler spooler-max-tasks = 20 # every five minutes -unique-cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command cancel_events --all-tenants -v0 -unique-cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command send_email_notifications --all-tenants -v0 -unique-cron = -5 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command update_event_recurrences --all-tenants -v0 +cron2 = minute=-5,unique=1 /usr/bin/chrono-manage tenant_command cancel_events --all-tenants -v0 +cron2 = minute=-5,unique=1 /usr/bin/chrono-manage tenant_command send_email_notifications --all-tenants -v0 +cron2 = minute=-5,unique=1 /usr/bin/chrono-manage tenant_command update_event_recurrences --all-tenants -v0 # hourly -unique-cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command clearsessions --all-tenants -unique-cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command send_booking_reminders --all-tenants -unique-cron = 1 -1 -1 -1 -1 /usr/bin/chrono-manage tenant_command sync_desks_timeperiod_exceptions --all-tenants +cron2 = minute=3,unique=1 /usr/bin/chrono-manage tenant_command clearsessions --all-tenants +cron2 = minute=13,unique=1 /usr/bin/chrono-manage tenant_command send_booking_reminders --all-tenants +cron2 = minute=23,unique=1 /usr/bin/chrono-manage tenant_command sync_desks_timeperiod_exceptions --all-tenants # daily -unique-cron = 2 4 -1 -1 -1 /usr/bin/chrono-manage tenant_command anonymize_bookings --all-tenant +cron2 = minute=33,hour=4,unique=1 /usr/bin/chrono-manage tenant_command anonymize_bookings --all-tenants # monthly -unique-cron = 1 1 1 -1 -1 /usr/bin/chrono-manage tenant_command update_shared_custody_holiday_rules --all-tenant -# every 01/01 at 1:1 -unique-cron = 1 1 1 1 -1 /usr/bin/chrono-manage tenant_command sync_desks_timeperiod_exceptions_from_settings --all-tenants -v0 +cron2 = minute=43,hour=1,day=1,unique=1 /usr/bin/chrono-manage tenant_command update_shared_custody_holiday_rules --all-tenants +# yearly (1th january) +cron2 = minute=53,hour=2,day=1,month=1,unique=1 /usr/bin/chrono-manage tenant_command sync_desks_timeperiod_exceptions_from_settings --all-tenants -v0 master = true enable-threads = true