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

Don't dispatch expired tasks from taskReader buffer #3161

Merged
merged 1 commit into from
Jul 28, 2022
Merged

Conversation

dnr
Copy link
Member

@dnr dnr commented Jul 28, 2022

What changed?
Check for task expiration after tasks come out of the task buffer, before they're dispatched. This is before the rate limiter is checked, so these tasks won't consume rate limit tokens.

Why?
Fixes #3150

How did you test it?
Modified unit test

Potential risks

Is hotfix candidate?

@dnr dnr requested a review from a team as a code owner July 28, 2022 17:23
Copy link
Member

@yiminc yiminc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dnr dnr merged commit 2342964 into temporalio:master Jul 28, 2022
yux0 pushed a commit to yux0/temporal that referenced this pull request Aug 3, 2022
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.

Discard expired task before dispatch them
2 participants