tasks.py 166 B

12345678
  1. from celery import shared_task
  2. from .models import Project
  3. @shared_task
  4. def delete_project(project_id: int):
  5. Project.objects.get(id=project_id).force_delete()