From 4cb82ea9bd736f41d0f3a4eee530d8d1b2cdd70d Mon Sep 17 00:00:00 2001 From: blitzmann Date: Thu, 27 Aug 2020 21:49:55 -0400 Subject: [PATCH] Revert testing condition that decreased number of tasks kept --- cps/services/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/services/worker.py b/cps/services/worker.py index a22b9a71..05307b52 100644 --- a/cps/services/worker.py +++ b/cps/services/worker.py @@ -23,7 +23,7 @@ STAT_STARTED = 2 STAT_FINISH_SUCCESS = 3 # Only retain this many tasks in dequeued list -TASK_CLEANUP_TRIGGER = 5 +TASK_CLEANUP_TRIGGER = 20 QueuedTask = namedtuple('QueuedTask', 'num, user, added, task')