Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimerQueueProcessor stuck fix on large backlog on available timers #460

Merged

Conversation

samarabbas
Copy link
Contributor

@samarabbas samarabbas commented Dec 12, 2017

TimerQueueProcessor issues a query to DB for visibilityTime '>=' from
the readlevel. This could result in reading same timer multiple times
and trips the processor in thinking it fired all available timers as the
number of tasks returned back to the caller would be less than batch
size.
Updated the logic to return an explicit flag back to the caller so it
can immediately callback again when there are more timers to fire.

fixes #461

TimerQueueProcessor issues a query to DB for visibilityTime '>=' from
the readlevel.  This could result in reading same timer multiple times
and trips the processor in thinking it fired all available timers as the
number of tasks returned back to the caller would be less than batch
size.
Updated the logic to return an explicit flag back to the caller so it
can immediately callback again when there are more timers to fire.
@samarabbas samarabbas self-assigned this Dec 12, 2017
@samarabbas samarabbas requested a review from wxing1292 December 12, 2017 19:39
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 66.479% when pulling a5b3492 on samarabbas:workflow-timeout-stuck-issue into c844eb7 on uber:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 66.296% when pulling 33f5ab0 on samarabbas:workflow-timeout-stuck-issue into 4176791 on uber:master.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling eabcec6 on samarabbas:workflow-timeout-stuck-issue into ** on uber:master**.

@samarabbas samarabbas merged commit 963d13c into cadence-workflow:master Dec 12, 2017
@samarabbas samarabbas deleted the workflow-timeout-stuck-issue branch December 12, 2017 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TimerQueueProcessor gets stuck if timers are created very fast
3 participants