You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4756 Fix deleting project deployment with subflow jobs
Recursively delete child subflow jobs before the parent's task_executions to satisfy the fk_job_task_execution constraint.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: server/ee/libs/atlas/atlas-execution/atlas-execution-remote-client/src/main/java/com/bytechef/ee/atlas/execution/remote/client/service/RemoteJobServiceClient.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,11 @@ public Optional<Job> fetchLastWorkflowJob(List<String> workflowIds) {
Copy file name to clipboardExpand all lines: server/libs/atlas/atlas-execution/atlas-execution-api/src/main/java/com/bytechef/atlas/execution/service/JobService.java
Copy file name to clipboardExpand all lines: server/libs/atlas/atlas-execution/atlas-execution-repository/atlas-execution-repository-api/src/main/java/com/bytechef/atlas/execution/repository/JobRepository.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ public interface JobRepository {
Copy file name to clipboardExpand all lines: server/libs/atlas/atlas-execution/atlas-execution-repository/atlas-execution-repository-jdbc/src/main/java/com/bytechef/atlas/execution/repository/jdbc/JdbcJobRepository.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,5 +65,10 @@ public interface JdbcJobRepository
65
65
@Query("SELECT * FROM job j WHERE j.id = (SELECT job_id FROM task_execution te WHERE te.id=:taskExecutionId)")
Copy file name to clipboardExpand all lines: server/libs/atlas/atlas-execution/atlas-execution-repository/atlas-execution-repository-memory/src/main/java/com/bytechef/atlas/execution/repository/memory/InMemoryJobRepository.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,26 @@ public List<Job> findAllByWorkflowId(String workflowId) {
Copy file name to clipboardExpand all lines: server/libs/atlas/atlas-execution/atlas-execution-service/src/main/java/com/bytechef/atlas/execution/facade/JobFacadeImpl.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,10 @@ public long createJob(JobParametersDTO jobParametersDTO) {
98
98
@Override
99
99
@Transactional
100
100
publicvoiddeleteJob(longid) {
101
+
for (longchildJobId : jobService.getChildJobIds(id)) {
Copy file name to clipboardExpand all lines: server/libs/atlas/atlas-execution/atlas-execution-service/src/main/java/com/bytechef/atlas/execution/service/JobServiceImpl.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,12 @@ public Optional<Job> fetchLastWorkflowJob(List<String> workflowIds) {
Copy file name to clipboardExpand all lines: server/libs/platform/platform-job-sync/src/main/java/com/bytechef/platform/job/sync/executor/JobServiceWrapper.java
0 commit comments