Skip to content

Commit

Permalink
chore(celery-beat): disable periodic cleanup (#5986)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicferpoy authored Dec 2, 2024
1 parent fdafb8b commit d678946
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/src/backend/config/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
celery_app = Celery("tasks")

celery_app.config_from_object("django.conf:settings", namespace="CELERY")
celery_app.conf.update(result_extended=True)
celery_app.conf.update(result_extended=True, result_expires=None)

celery_app.autodiscover_tasks(["api"])

Expand All @@ -20,9 +20,10 @@ def apply_async(
shadow=None,
**options,
):
from api.models import Task as APITask
from django_celery_results.models import TaskResult

from api.models import Task as APITask

result = super().apply_async(
args=args,
kwargs=kwargs,
Expand Down

0 comments on commit d678946

Please sign in to comment.