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
First of all thanks for this sample, i used as a reference and modified a bit, trying to make it as simple as possible, in my case triggers are stored as Hash keys as "trigger:grpName:cronTriggerTest"
hence in "acquireNextTriggers" this is what i do:
for (String triggerHashKey : stringRedisConnection.keys("trigger:grpName:cronTriggerTest") ) {
// do retrievetrigger ...
but this trigger always has next fire time as NULL and hence triggers never gets fired as we have a check here that:
if ((trigger != null) && trigger.getNextFireTime() == null) {
/** Trigger has no next fire time. Unset its WAITING state. **/
continue;
}
}
Note: i am also NOT using any trigger state logic here.
The text was updated successfully, but these errors were encountered:
First of all thanks for this sample, i used as a reference and modified a bit, trying to make it as simple as possible, in my case triggers are stored as Hash keys as "trigger:grpName:cronTriggerTest"
hence in "acquireNextTriggers" this is what i do:
for (String triggerHashKey : stringRedisConnection.keys("trigger:grpName:cronTriggerTest") ) {
// do retrievetrigger ...
but this trigger always has next fire time as NULL and hence triggers never gets fired as we have a check here that:
if ((trigger != null) && trigger.getNextFireTime() == null) {
/** Trigger has no next fire time. Unset its WAITING state. **/
continue;
}
}
Note: i am also NOT using any trigger state logic here.
The text was updated successfully, but these errors were encountered: