Hello everyone!
There are two applications working with the same database.
Applications use the business process involves asynchronous tasks.
There is also an EventListener, which writes processInstanceId for all jobs that have been completed and counts the number of completed jobs. During tests, i saw that one app performs a bit more jobs than another.
For example, if two applications had to perform 1000 jobs as a result of one of them performs about 1050, and another 1000.
When i checked stored processInstanceIds, and saw that there are matching id so both apps execute same jobs.
Please tell me why this might be.
The idea is if AsyncJobExecutor takes the task to work, it must lock it and other JobExecutors that work with same database cant execute it.