tasks.py 179 B

123456789
  1. from celery import shared_task
  2. from .models import Issue
  3. @shared_task
  4. def delete_issue_task(ids: list[int]):
  5. for id in ids:
  6. Issue.objects.get(id=id).force_delete()