Locks

Read a project lock

Changed on

Reports whether the lock is currently held, when its lease expires, and the holder's fencing token. held follows takeover eligibility rather than raw expiry, so held: false means an acquire would succeed now. No lock token is required, making this usable for monitoring and recovery.

get/locks/{key}

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    HTTP bearer

Path parameters

key, string required

Project-local lock name.

Headers

X-Volcano-Request-Id, string uuid required

UUID correlating this request across client and server logs. Repeat safety comes from the lock token, so a retry under a reused request ID still counts against the quota.

Response

Current lock state

ProjectLockState required
held, boolean required

Whether the lock is unavailable right now. False means an acquire would succeed. It remains true during the brief grace window after expiry.

expires_at, string date-time

Advisory lease expiry timestamp in UTC. Present only when held.

fencing_token, integer

Current holder's fencing token. Present only when held.

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    12 more changes in this revision