-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1036 from eclipse-tractusx/feat/orchestrator-abort
feat(Orchestrator): now aborts outdated tasks
- Loading branch information
Showing
9 changed files
with
157 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
bpdm-orchestrator/src/main/resources/db/migration/V6_2_0_0__add_abort_status_check.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ALTER TABLE golden_record_tasks | ||
DROP CONSTRAINT golden_record_tasks_task_step_state_check; | ||
|
||
ALTER TABLE golden_record_tasks | ||
ADD CONSTRAINT golden_record_tasks_task_step_state_check | ||
check ( task_step_state in ('Queued', 'Reserved', 'Success', 'Error', 'Aborted')); | ||
|
||
ALTER TABLE golden_record_tasks | ||
DROP CONSTRAINT golden_record_tasks_task_result_state_check; | ||
|
||
ALTER TABLE golden_record_tasks | ||
ADD CONSTRAINT golden_record_tasks_task_result_state_check | ||
check ( task_result_state in ('Pending', 'Success', 'Error', 'Aborted')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.