claim_lane
Claim a coordination lane with options to claim if free, steal if lease expired, or renew ownership. Returns a 409 conflict if held by another owner; lease may be shorter than requested.
Instructions
Claim a coordination lane before starting work in it: claim-if-free, steal-if-lease-expired, renew-if-you-already-own-it. A 409 (lane held live by another owner) comes back as a clean ok=False conflict, not a crash. The bus may grant a shorter lease than requested (server-side ceiling, coordination-bus v1.3+): on ok=True the response's top-level lease_s is the EFFECTIVE (post-clamp) duration actually granted -- always check it rather than assuming the requested value was honored. See get_bus_status's _meta.max_lease_seconds for the currently configured ceiling. Older bus servers (pre-v1.3) omit lease_s from the response entirely; its absence just means the bus predates the ceiling feature, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lane | Yes | ||
| owner | Yes | ||
| lease_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||