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
TimerQueueProcessor sets a very long timer during initialization to notify processor for querying DB. This is problematic in the scenario where a shard restarts then it won't fire any existing timers until a new timer is created for that shard.
The text was updated successfully, but these errors were encountered:
TimerQueueProcessor used to setup a very long timer on initialization to
notify processor for doing a DB scan. This becomes problematic when you
have existing timers and shard restarts. Now after initialization of
shard there is no trigger for the processor to perform a DB scan. It
now has to wait for a trigger from outside to perform the first scan so
it can start operating as usual.
This change removes the infite timer on initialize to perform first scan
immediately to check for existing timers.
Also some code cleanup and removing some unnecessary code.
fixescadence-workflow#454
* TimerQueueProcessor to scan DB for exisiting timers on init
TimerQueueProcessor used to setup a very long timer on initialization to
notify processor for doing a DB scan. This becomes problematic when you
have existing timers and shard restarts. Now after initialization of
shard there is no trigger for the processor to perform a DB scan. It
now has to wait for a trigger from outside to perform the first scan so
it can start operating as usual.
This change removes the infite timer on initialize to perform first scan
immediately to check for existing timers.
Also some code cleanup and removing some unnecessary code.
fixes#454
TimerQueueProcessor sets a very long timer during initialization to notify processor for querying DB. This is problematic in the scenario where a shard restarts then it won't fire any existing timers until a new timer is created for that shard.
The text was updated successfully, but these errors were encountered: