{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://git.transaction.science/Transaction-Science/open-standards/raw/branch/main/wai/wai-quantum-cli/schemas/lease.v1.json", "title": "wai.quantum.lease/1", "description": "The lease wai-quantum task keeps for a batch scheduler's job (by default wai-quantum-lease.json in its working directory): the job service it reaches, when the lease was acquired, the service's receipt key and limits as it described them then, and every task started under it, so that release stops what is still queued or running.", "type": "object", "required": [ "format", "service", "acquired_ms", "tasks" ], "properties": { "format": { "const": "wai.quantum.lease/1" }, "service": { "type": "string", "description": "The job service's address." }, "acquired_ms": { "type": "integer", "minimum": 0, "description": "When the lease was acquired, in milliseconds since 1970." }, "receipt_key": { "type": [ "string", "null" ], "description": "The service's current receipt key when the lease was acquired, in hex." }, "limits": { "type": [ "object", "null" ], "description": "The service's limits as it described them (GET /v1)." }, "tasks": { "type": "array", "items": { "type": "string" }, "description": "The id of every task started under the lease, in order." } } }