-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminate children using the new ProcessInstanceBatch
command
#12604
Conversation
Verifies we can terminate a PI with a lot of children, as well as a subprocess with a lot of children. It also verifies that is using the batching as expected.
Uses the new ProcessInstanceBatch.TERMINATE command to terminated child instances. It will only do this if children exist.
Now that we terminate children in batches, this method is no longer used.
Fixes existing tests to adhere to batch termination BoundaryEventTest: This test asserts over an exact sequence of record. The terminate batch command needs to be inserted in this sequence. ProcessInstanceCommandRejectionTest: Because of the batch command no seconds terminate command is written anymore. We need another setup to write 2 terminate commands.
233b49b
to
12439f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks clean! 🚀
Really good test cases covering the possible occurring problem!
bors merge |
12604: Terminate children using the new `ProcessInstanceBatch` command r=berkaycanbc a=remcowesterhoud ## Description <!-- Please explain the changes you made here. --> This PR switches the termination of child instances to use the new `ProcessInstanceBatch` command. ## Related issues <!-- Which issues are closed by this PR or are related --> closes #12538 closes #11355 Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
Build failed: |
Lot of issues connecting to Maven today bors merge |
Build succeeded: |
Successfully created backport PR for |
Successfully created backport PR for |
Successfully created backport PR for |
Description
This PR switches the termination of child instances to use the new
ProcessInstanceBatch
command.Related issues
closes #12538
closes #11355
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation:
Other teams:
If the change impacts another team an issue has been created for this team, explaining what they need to do to support this change.
Please refer to our review guidelines.