Details
Description
Scenario:
- job execution thread executes an exclusive job
- in the context of that job, new exclusive jobs are created
- however, these jobs belong to different process instances
Current behavior:
- the job execution thread locks these jobs straight away and executes them directly after the current job has finished
- this results in serialization of these new jobs' execution
Expected behavior:
- the job execution thread does not immediately execute new exclusive jobs, if they belong to different process instances
- enables parallel execution of such jobs
Reason:
- process instance context is not considered when notifying the job executor here: https://github.com/camunda/camunda-bpm-platform/blob/7.4.0/engine/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/JobManager.java#L110-L113