bytechef
bytechef copied to clipboard
[bug]: Unable to delete project instance with present executions
Describe the bug
Delete project instance from user instance displays error:
update or delete on table "task_execution" violates foreign key constraint
there are error statements in the log:
Caused by: org.postgresql.util.PSQLException: ERROR: update or delete on table "task_execution" violates foreign key constraint "fk_task_execution_task_execution" on table "task_execution"
Steps To Reproduce
- publish project1 with at least one valid working workflow w1 - remember published version v1
- go to project instances and pick project1 version v1
- enable w1
- enable project1
- execute workflow w1 couple times manually (click play button)
- disable project project1
- disable workflow w1
- in project1 action menu choose delete executions Expected Executions are deleted Actually error in red dialog that task_execution can not be deleted erro in logs
Expected behavior
Click on delete action for project1 deletes executions
Version
2.3.1
OS
MacOsX
Browser
Chrome
Additional context
No response