bytechef icon indicating copy to clipboard operation
bytechef copied to clipboard

[bug]: Unable to delete project instance with present executions

Open igorbeslic opened this issue 1 year ago • 0 comments

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

  1. publish project1 with at least one valid working workflow w1 - remember published version v1
  2. go to project instances and pick project1 version v1
  3. enable w1
  4. enable project1
  5. execute workflow w1 couple times manually (click play button)
  6. disable project project1
  7. disable workflow w1
  8. 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

igorbeslic avatar Aug 06 '24 08:08 igorbeslic