Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Apr 29, 2024
1 parent 4e402a1 commit 9de3440
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/common/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,5 +760,4 @@ def resolve_url_registry_entries(repo_id, repo_type):

@app.task(ignore_result=True)
def expire_old_celery_tasks():
from core.tasks.models import Task
Task.objects.filter(updated_at__lt=timezone.now() - timezone.timedelta(days=7)).delete()
Task.objects.filter(updated_at__lt=timezone.now() - timezone.timedelta(days=7)).delete()

0 comments on commit 9de3440

Please sign in to comment.