Skip to content

Add cluster unlock functionality to the cluster lock only mechanism - #115

Merged
openshift-merge-bot[bot] merged 7 commits into
openshift-psap:mainfrom
ashtarkb:feature/cluster-lock
Aug 25, 2026
Merged

Add cluster unlock functionality to the cluster lock only mechanism #115
openshift-merge-bot[bot] merged 7 commits into
openshift-psap:mainfrom
ashtarkb:feature/cluster-lock

Conversation

@ashtarkb

Copy link
Copy Markdown
Contributor

This PR allows to unlock the cluster after it was locked continuing the work for lock only operations.

spec.lockOnly - holds cluster-slot quota without running a pipeline. Implies exclusive: true and requires cluster. The job stays Admitted until deleted, shut down, or (with lockUntil) until it auto-expires.
spec.lockUntil - Only valid with 'lockOnly: true' . ISO 8601 UTC timestamp (e.g., 2026-08-23T22:00:00Z) at which the lock is released automatically. Omit to hold the lock indefinitely.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7cd482c4-55fd-4080-b540-26963703c782


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread fournos/handlers/lifecycle.py Outdated
Comment thread fournos/handlers/lifecycle.py Outdated
Comment thread fournos/handlers/lifecycle.py Outdated
Comment thread fournos/handlers/lifecycle.py Outdated

@kpouget kpouget left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks Avi, looks good overall,
just a minor comment on a log level and we should be good 👍🏻

Comment thread fournos/handlers/execution.py Outdated
This code path is unreachable in practice (lockUntil is already
validated at creation), and only concerns the fjob creator rather
than cluster admins, so warning-level logging was too noisy per
review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kpouget

kpouget commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

thanks Avi, great work 🙏🏻
/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2026
@ashtarkb

Copy link
Copy Markdown
Contributor Author

/approve

@openshift-ci

openshift-ci Bot commented Aug 25, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashtarkb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 25, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit f233fb2 into openshift-psap:main Aug 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants