Skip to content

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

@basclaessen

Description

@basclaessen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions