Skip to content

jobs: Clear out claim columns when pausing jobs #82698

@miretskiy

Description

@miretskiy

If a job is paused, it retains claim_session_id and claim_instance_id columns.
Thus, if it is subsequently resumed, the same node will reclaim the job...
We should clear out both columns when pausing the job.

Currently, this is the only mechanism we have to try to "rebalance" jobs resumer
assignment.

Also consider lowering the number of jobs registry can claim at a time.
Bonus: consider moving this limit from an env var to a setting.

Jira issue: CRDB-16553

Epic CRDB-15034

Metadata

Metadata

Assignees

Labels

A-jobsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-jobssync-me-8

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions