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

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

Open
basclaessen opened this issue Oct 29, 2022 · 0 comments · May be fixed by #3510

Comments

@basclaessen
Copy link
Contributor

Describe the bug
When multiple exclusive external worker jobs with the same topic belonging to the same process instance are available for acquiring, no external worker jobs will be acquired.
This is caused by the AcquireExternalWorkerJobsCmd which will try to lock the same process instance for each external worker job.

Locking the process instance for the first external worker job will succeed, but the second one will cause a FlowableOptimisticLockingException.
The FlowableOptimisticLockingException will rollback the acquire process and after a couple of retries no external worker jobs will be acquired.

Expected behavior
When multiple exclusive external worker jobs with the same topic belonging to the same process instance are available for acquiring, non exclusive external worker jobs and exclusive worker jobs (one per process instance) will be acquired.

Code
ParallelExternalWorker

Additional context
Flowable 6.7.3-SNAPSHOT

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 a pull request may close this issue.

1 participant