forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 cadence-workflow#454
- Loading branch information
1 parent
6ed2014
commit 4a215b7
Showing
2 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters