mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 15:45:36 +01:00
Disable cron jobs
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
from arq.connections import ArqRedis
|
||||
from arq.cron import cron
|
||||
|
||||
from app.services.updaters.fl_updater import __tasks__ as fl_tasks
|
||||
from app.services.updaters.fl_updater import run_fl_update
|
||||
|
||||
# from app.services.updaters.fl_updater import run_fl_update
|
||||
from core.arq_pool import get_redis_settings, get_arq_pool
|
||||
import core.sentry # noqa: F401
|
||||
|
||||
|
||||
# from arq.cron import cron
|
||||
|
||||
|
||||
async def startup(ctx):
|
||||
ctx["arq_pool"] = await get_arq_pool()
|
||||
|
||||
@@ -26,4 +29,4 @@ class WorkerSettings:
|
||||
max_jobs = 2
|
||||
max_tries = 30
|
||||
job_timeout = 10 * 60
|
||||
cron_jobs = [cron(run_fl_update, hour={5}, minute=0)]
|
||||
# cron_jobs = [cron(run_fl_update, hour={5}, minute=0)]
|
||||
|
||||
Reference in New Issue
Block a user