Skip to content

lock: allow unlock_one_safe to unlock same job#2121

Closed
deepssin wants to merge 1 commit intoceph:mainfrom
deepssin:fix-unlock-one-safe-same-job-clean
Closed

lock: allow unlock_one_safe to unlock same job#2121
deepssin wants to merge 1 commit intoceph:mainfrom
deepssin:fix-unlock-one-safe-same-job-clean

Conversation

@deepssin
Copy link
Copy Markdown
Contributor

Fix unlock_one_safe() to allow unlocking when the active job matches the current run/job id. Previously, it would refuse to unlock even when the same run was trying to clean up after itself.

This change allows the same job to unlock machines it locked, which is necessary for proper cleanup when a job needs to unlock machines it's currently running on.

Changes:

  • Allow unlock if active job matches current run id

Fix unlock_one_safe() to allow unlocking when the active job matches
the current run/job id. Previously, it would refuse to unlock even
when the same run was trying to clean up after itself.

This change allows the same job to unlock machines it locked, which
is necessary for proper cleanup when a job needs to unlock machines
it's currently running on.

Changes:
- Allow unlock if active job matches current run id

Signed-off-by: deepssin <deepssin@redhat.com>
@deepssin deepssin requested a review from zmc December 24, 2025 12:46
@deepssin deepssin requested a review from a team as a code owner December 24, 2025 12:46
@deepssin deepssin requested review from VallariAg and removed request for a team December 24, 2025 12:46
@deepssin
Copy link
Copy Markdown
Contributor Author

Already handled by another PR

@deepssin deepssin closed this Jan 22, 2026
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.

1 participant