Skip to content
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

Acquire only one exclusive external worker job per process instance #3510

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

basclaessen
Copy link
Contributor

Fixes #3509

Check List:

  • Unit tests: YES
  • Documentation: NO

@basclaessen
Copy link
Contributor Author

This solution has a side effect. When one exclusive external worker job (a) is acquired and an other exclusive external worker job (b) belonging to the same process/case instance with the same topic is ready for acquiring a FlowableOptimisticLockingException is thrown and the acquire transaction is rolled back.
This will prevent other external external worker jobs which are ready for acquiring with the same topic (exclusive or not) belonging to other process/case instances to be acquired until (a) is completed.

I'll work on another solution proposal for #3509 which does not have the side effect mentioned above.

@filiphr
Copy link
Contributor

filiphr commented Dec 20, 2022

Thanks for working on this and good point @basclaessen. We are going to review this and try to come up with the right solution. Ideally we should try to avoid the side effect in this solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Job-service: Parallel exclusive external worker tasks with the same topic block acquiring external worker jobs
2 participants