michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
247 stars 199 forks source link

-FindEgligble for run should return at most maxCount items. Add limit… #152

Closed tomekl007 closed 6 years ago

tomekl007 commented 6 years ago

… to mongo query, In case that we had 200 000 triggers those triggers are fetch every time, event if the batch size is equal to lower number.

-Move acquiredEnough check at the end of for loop. In case that tirggers have enough values we don't want to execute another mongo query, but finish before that action