Repository navigation
feat(engine): Add property for skipping locked jobs in the job executor query [#264] - #326
Conversation
|
|
I'm missing a test case, that at least checks that the SQL is containing |
|
You're right and this is planned. This is still a draft and WIP |
4eed1f9 to
e5afa0e
Compare
|
|
@javahippie This could be something for version 1.1? If so, assign the milestone. Branch |
e5afa0e to
2126a54
Compare
|
2126a54 to
bddff30
Compare
…or query [#264] # Conflicts: # engine/src/main/java/org/operaton/bpm/engine/ProcessEngineConfiguration.java
3d2993a to
8866dc0
Compare
|
We are also sporadically facing with issues described in Job-execution-rejected, unfortunately, I'm afraid this approach won't work as expected. The are two main reasons:
|
Hey @andreybpanfilov! 🎉Thanks for joining the discussion and leaving your first comment here. 💬 👉 Just a quick reminder to check out our Contributing Guidelines and the Code of Conduct so we can keep the collaboration smooth and welcoming for everyone. We appreciate your input and look forward to more of your contributions. 🚀 |
|
Hi, @andreybpanfilov, thanks for your comments, I really appreciate your insights! Your remarks make a lot of sense – this feature is finicky and can find edge cases which might not behave the way we like. I think your thoughts about serial execution of the AcquireJobsCmd. I will keep exploring if the FOR UPDATE SKIP LOCKED approach can be built in a robust way, but I'd also like to evaluate your proposal. I promise you that this feature won't be rushed, would at most(!) be an opt-in feature users need to actively enable and that we will scrap this idea if during testing we find out that it won't work. |
|
…tion-for-skipping-locked-rows
…tion-for-skipping-locked-rows
|
@kthoms making progress on this. Queries, Indexes seem to be robust and I think I managed to navigate around all the caveats of skip locked ... for every vendor so far (minor verifications for Oracle, because Rownum is ... well, how it is). One question arises: You can globally configure the job executor to work by priority first, not by due date. I have never seen this flag activated, and I think very few people use this. For the locking to work properly (and not too broad) on MySQL and MariaDB, I am adding a new index. This index does not work, if the job executor works by priority. Without an index, concurrent nodes reading from the table could lock too many entries, leading for some of the nodes to possibly get empty results and run a job executor cycle without doing anything. There are now three options: It's too late in the evening for me to have a preference here, would be happy about a short discussion in the upcoming days |
|
Ran the integration tests. Same flakey tests failed on multiple vendors (I think they were introduced when Thread.sleep() was replaced with awaitility. Will create an issue and fix it in a different PR. What's now missing: Agreement on the behavior and possibly some configuration guards. If we want preview features, this would be a prime candidate |
|
…tion-for-skipping-locked-rows
|



Preview Feature for the next Milestone release, not to be a part of a final release, yet.
Fixes #264