Files
invest-harness/designDocument/contracts/runner-assignment.schema.json
T

84 lines
1.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Runner Assignment v1",
"type": "object",
"additionalProperties": false,
"required": [
"attemptId",
"runId",
"leaseEpoch",
"leaseUntil",
"executionSpec",
"attemptContext",
"executionToken",
"tokenExpiresAt"
],
"properties": {
"attemptId": {
"type": "string",
"minLength": 1
},
"runId": {
"type": "string",
"minLength": 1
},
"leaseEpoch": {
"type": "integer",
"minimum": 1
},
"leaseUntil": {
"type": "string",
"format": "date-time"
},
"executionSpec": {
"$ref": "execution-spec.schema.json"
},
"attemptContext": {
"type": "object",
"additionalProperties": false,
"required": [
"deadlineAt"
],
"properties": {
"deadlineAt": {
"type": "string",
"format": "date-time"
},
"continuation": {
"type": "object",
"additionalProperties": false,
"required": [
"checkpointRef",
"inputRequestId",
"responseId",
"resumeInput"
],
"properties": {
"checkpointRef": {
"type": "string",
"minLength": 1
},
"inputRequestId": {
"type": "string",
"minLength": 1
},
"responseId": {
"type": "string",
"minLength": 1
},
"resumeInput": {}
}
}
}
},
"executionToken": {
"type": "string",
"minLength": 1
},
"tokenExpiresAt": {
"type": "string",
"format": "date-time"
}
}
}