debian: move cron jobs to uwsgi (#74597) #103

Merged
fpeters merged 1 commits from wip/74597-uwsgi-cron into main 2023-05-26 07:39:35 +02:00
3 changed files with 11 additions and 6 deletions

5
debian/combo.cron.d vendored
View File

@ -1,4 +1 @@
MAILTO=root
0 8 * * * combo /usr/bin/combo-manage tenant_command notify_new_remote_invoices --all-tenants -v0
*/10 * * * * combo /usr/bin/combo-manage tenant_command lingo-poll-backend --all-tenants -v0 --no-input --all-backends
# crons managed by uwsgi; see /etc/combo/uwsgi.ini

View File

@ -1,4 +1,4 @@
#!/bin/sh
# crons managed by uwsgi; see /etc/combo/uwsgi.ini
/sbin/runuser -u combo /usr/bin/combo-manage -- tenant_command cron --all-tenants -v0
/sbin/runuser -u combo /usr/bin/combo-manage -- tenant_command clearsessions --all-tenants -v0
exit 0

8
debian/uwsgi.ini vendored
View File

@ -19,6 +19,14 @@ spooler-max-tasks = 20
# daily
cron2 = minute=33,hour=4,unique=1 /usr/bin/combo-manage tenant_command clear_snapshot_pages --all-tenants
cron2 = minute=0,hour=8,unique=1 /usr/bin/combo-manage tenant_command notify_new_remote_invoices --all-tenants -v0
# hourly
cron2 = minute=3,unique=1 /usr/bin/combo-manage tenant_command clearsessions --all-tenants -v0
cron2 = minute=10,unique=1 /usr/bin/combo-manage tenant_command cron --all-tenants -v0
# every ten minutes
cron2 = minutes=-10,unique=1 /usr/bin/combo-manage tenant_command lingo-poll-backend --all-tenants -v0 --no-input --all-backends
master = true
enable-threads = true