-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
jobs: Ensure schedules are cancelled when scheduler disabled. #77306
Conversation
dc1e43d
to
ec0079f
Compare
pkg/jobs/job_scheduler.go
Outdated
type syncCancelFunc struct { | ||
syncutil.Mutex | ||
context.CancelFunc | ||
sv *settings.Values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to capture sv? don't we have it at the withCancelOnDisabled callsite too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah; we could pass it in...done.
ec0079f
to
fa13954
Compare
Ensure that currently executing schedules are cancelled immediately when jobs scheduler disabled via the `jobs.scheduler.enabled` setting. Fixes cockroachdb#77248 Release Note (enterprise change): Currently executing schedules are cancelled immediately when jobs scheduler disabled. Release Justification: stability improvement.
fa13954
to
3661ab1
Compare
Informs #70920 |
bors r+ |
Build succeeded: |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating backport branch refs/heads/blathers/backport-release-21.1-77306: POST https://api.github.com/repos/cockroachlabs/cockroach/git/refs: 403 Resource not accessible by integration [] Backport to branch 21.1.x failed. See errors above. error creating backport branch refs/heads/blathers/backport-release-21.2-77306: POST https://api.github.com/repos/cockroachlabs/cockroach/git/refs: 403 Resource not accessible by integration [] Backport to branch 21.2.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
Ensure that currently executing schedules are cancelled immediately
when jobs scheduler disabled via the
jobs.scheduler.enabled
setting.Fixes #77248
Release Note (enterprise change): Currently executing schedules are
cancelled immediately when jobs scheduler disabled.
Release Justification: stability improvement.