feat(api): auto-delete WorkflowDraftVariable when app is deleted (#23737)
This commit introduces a background task that automatically deletes `WorkflowDraftVariable` records when their associated workflow apps are deleted. Additionally, it adds a new cleanup script `cleanup-orphaned-draft-variables` to remove existing orphaned draft variables from the database.
This commit is contained in:
parent
854c1aa37d
commit
e600070a61
7 changed files with 665 additions and 4 deletions
0
api/tests/unit_tests/tasks/__init__.py
Normal file
0
api/tests/unit_tests/tasks/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue