Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backend_cleanup fails when TaskResult is referenced in a model #383

Closed
magicbrothers opened this issue Apr 21, 2023 · 1 comment · Fixed by #384
Closed

backend_cleanup fails when TaskResult is referenced in a model #383

magicbrothers opened this issue Apr 21, 2023 · 1 comment · Fixed by #384

Comments

@magicbrothers
Copy link

Assuming a model to connect a User and a TaskResult is created like described here: #46 (comment)

Due to delete_expired using raw_delete, which apparently doesn't do cascade deletion, models like ExtraTaskInfo aren't deleted and instead an error is raised: update or delete on table "django_celery_results_taskresult" violates foreign key constraint.

For a full error log and example in a real application see this AlekSIS issue.

@hansegucker
Copy link
Contributor

#235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants