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