mirror of
https://github.com/flibusta-apps/meilie_updater.git
synced 2025-12-06 15:15:37 +01:00
Add cron
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
from arq.cron import cron
|
||||||
|
|
||||||
from app.services import update, update_books, update_authors, update_sequences
|
from app.services import update, update_books, update_authors, update_sequences
|
||||||
from core.arq_pool import get_redis_settings, get_arq_pool
|
from core.arq_pool import get_redis_settings, get_arq_pool
|
||||||
|
|
||||||
@@ -12,3 +14,6 @@ class WorkerSettings:
|
|||||||
redis_settings = get_redis_settings()
|
redis_settings = get_redis_settings()
|
||||||
max_jobs = 3
|
max_jobs = 3
|
||||||
job_timeout = 15 * 60
|
job_timeout = 15 * 60
|
||||||
|
cron_jobs = [
|
||||||
|
cron("update", hour={6}, minute=0)
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user