use shared memory instead of expiring dict for jobs cache

This commit is contained in:
Kenneth Kehl
2024-09-26 11:56:39 -07:00
parent d27d877f68
commit 8aae0d59b4
3 changed files with 50 additions and 44 deletions

View File

@@ -269,6 +269,11 @@ class Config(object):
"expires": 60,
}, # Ensure it doesn't run if missed
},
"clean-job-cache": {
"task": "clean-job-cache",
"schedule": crontab(minute="*/5"),
"options": {"queue": QueueNames.PERIODIC},
},
"cleanup-unfinished-jobs": {
"task": "cleanup-unfinished-jobs",
"schedule": crontab(hour=4, minute=5),