From 9c8ae9d54033c01f1838b69c79b2d67149b4bb97 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 25 Apr 2026 14:38:24 +0100 Subject: [PATCH] feat: redbeat --- application/celeryconfig.py | 5 +++++ application/requirements.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/application/celeryconfig.py b/application/celeryconfig.py index 5a33ee19..7b296b4a 100644 --- a/application/celeryconfig.py +++ b/application/celeryconfig.py @@ -9,3 +9,8 @@ accept_content = ['json'] # Autodiscover tasks imports = ('application.api.user.tasks',) + +beat_scheduler = "redbeat.RedBeatScheduler" +redbeat_redis_url = broker_url +redbeat_key_prefix = "redbeat:docsgpt:" +redbeat_lock_timeout = 90 diff --git a/application/requirements.txt b/application/requirements.txt index c1258b1e..4acd4839 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -6,6 +6,7 @@ boto3==1.42.83 beautifulsoup4==4.14.3 cel-python==0.5.0 celery==5.6.3 +celery-redbeat==2.3.3 cryptography==46.0.7 dataclasses-json==0.6.7 defusedxml==0.7.1