You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
I am trying to update quartz-mongodb in our project. Unfortunately we had to do some monkey-patching around quartz-mongodb code so I took some look into quartz-mongodb code and noticed the following strange things about setting custom checkInErrorHandler:
MongoDBJobStore#initialize reads quartz-properties into local variable props
The thing is that setCheckInErrorHandler is never called by anyone.
So, properties are being read for no reason and checkInErrorHandler class is based chosen based on a value which is effectively constant. Seems like something here is missing.
The text was updated successfully, but these errors were encountered:
This repo is abandoned. I do recommend switching to SQL based Quartz from Spring. We tried to use this connector in our project but there has been too many problems with actual optimization and speed even on single instance. Switching to SQL version resolved it and allowed for correct multithreading speed.
Main maintainer/creator stopped contributions and did not refresh official artifact. Bintray is no longer with us. Additionally there are still persisting problems not only with transactions but also cluster mode.
Not saying this didnt have potential but we would need somebody to actually work and improve this and for now SQL version is a lot faster and more stable. I wanted to keep using this but it failed my expectations.
I am trying to update quartz-mongodb in our project. Unfortunately we had to do some monkey-patching around quartz-mongodb code so I took some look into quartz-mongodb code and noticed the following strange things about setting custom checkInErrorHandler:
MongoDBJobStore#initialize
readsquartz-properties
into local variableprops
quartz-mongodb/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java
Line 112 in 9125643
props
are passed intoMongoStoreAssembler#build
(and nowhere else)quartz-mongodb/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java
Line 114 in 9125643
MongoStoreAssembler#createCheckinExecutor
(and nowhere else)quartz-mongodb/src/main/java/com/novemberain/quartz/mongodb/MongoStoreAssembler.java
Line 81 in 9125643
Now to the strange things:
createCheckinExecutor
ignores these props and callscreateCheckinTask
(without passing props)quartz-mongodb/src/main/java/com/novemberain/quartz/mongodb/MongoStoreAssembler.java
Line 87 in 9125643
createCheckinTask
decides which error handler to use based on a value returned byMongoDBJobStore#getCheckInErrorHandler
quartz-mongodb/src/main/java/com/novemberain/quartz/mongodb/MongoStoreAssembler.java
Lines 95 to 100 in 9125643
The thing is that
setCheckInErrorHandler
is never called by anyone.So, properties are being read for no reason and
checkInErrorHandler
class is based chosen based on a value which is effectively constant. Seems like something here is missing.The text was updated successfully, but these errors were encountered: