`backend_cleanup` fails when TaskResult is referenced in a model
magicbrothers opened this issue · 1 comments
magicbrothers commented
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 commented