Closed vivganes closed 10 years ago
I suspect a trigger query somewhere does not include a condition on pausing. Feel free to investigate and submit a pull request with a fix.
I add this code in com.novemberain.quartz.mongodb.MongoDBJobStore.doAcquireNextTriggers(),then the paused trigger not be fired .
query.put(TRIGGER_NEXT_FIRE_TIME, new BasicDBObject("$lte", noLaterThanDate));
query.put(TRIGGER_STATE, STATE_WAITING);//only get waiting trigger
DBCursor cursor = triggerCollection.find(query);
@huang1900z any pull requests?
Thanks a lot
I'll push a new release to Clojars later today.
Eagerly waiting for a new release...
1.8.0
is up on Clojars.
Thanks a lot @michaelklishin
I see that jobs are triggered even after trigger is paused.
See a snippet of my code below.
Even after the trigger has been paused, I see the following lines printed in log.
Expectation is that the trigger should not be fired since it has been paused.
The same code works as expected while using RAMJobStore.