From 3e1d5076ab622cb30d8eaf4e46655b2d91d9de5b Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 26 Jun 2017 16:20:22 +0200 Subject: [PATCH] Add sessions2trash cron job for web2py --- sahana/etc/uwsgi/apps-available/sahana.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sahana/etc/uwsgi/apps-available/sahana.ini b/sahana/etc/uwsgi/apps-available/sahana.ini index 0e9b473..bb69e21 100644 --- a/sahana/etc/uwsgi/apps-available/sahana.ini +++ b/sahana/etc/uwsgi/apps-available/sahana.ini @@ -4,7 +4,6 @@ gid = sahana chown-socket = www-data:www-data chdir = /srv/sahana module = wsgihandler -mule = run_scheduler.py cheaper = 1 cheaper-algo = spare cheaper-initial = 1 @@ -12,3 +11,5 @@ cheaper-step = 1 workers = 4 idle = 600 harakiri = 120 +mule = run_scheduler.py +cron = 10 -1 -1 -1 -1 python web2py.py -Q -S eden -M -R scripts/sessions2trash.py -A -o