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

Avoid running pool jobs with a cancelled context #1852

Merged
merged 2 commits into from
Nov 2, 2022

Conversation

zalegrala
Copy link
Contributor

@zalegrala zalegrala commented Oct 31, 2022

Without this change, jobs will continue to get scheduled, even if the context has been cancelled. Here we include a check and avoid doing work if we have been asked to stop.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Without this change, jobs will continue to get scheduled, even if the
context has been cancelled.  Here we include a check and avoid doing
work if we have been asked to stop.

Signed-off-by: Zach Leslie <zach.leslie@grafana.com>
@zalegrala zalegrala marked this pull request as ready for review October 31, 2022 22:59
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

Changelog entry?

Signed-off-by: Zach Leslie <zach.leslie@grafana.com>
@zalegrala zalegrala merged commit 3cd396c into grafana:main Nov 2, 2022
@zalegrala zalegrala deleted the tempodbCancel branch November 2, 2022 14:20
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.

2 participants