Expand description
Structs§
- Input
- A named input file of a job: an LP model, or data a registered model reads.
- JobSpec
- A job envelope
optimization.job/0.1(the guide’s section Envelope). - Limits
- The time limits of a job.
- Resources
- The CPU slots of a job:
outer_workers * inner_threads <= cpu_slots <= 1024(the guide’s section Eight CPU slots).
Enums§
- Request
- A submitted job, in the current envelope or in the legacy format.
Constants§
- MAX_
INPUT_ BYTES - The largest input file, 64 MiB.
- PROTOCOL
- The worker protocol of this build. It adds the result contract 0.2 (evidence, refutations, objective bounds and the infeasibility and certified claims) to the process protocol of 0.1.
- PROTOCOLS
- Worker protocols the runner accepts. Every 0.1 result record is a valid 0.2 record, so 0.1 workers keep working; a 0.1 runner rejects 0.2 workers at registration instead of failing on their journals.
- SCHEMA
- The schema version of the job envelope, the value of
JobSpec::schema_version.
Functions§
- checked_
input - Reads
inputrelative tobase. Fails if its path leavesbase, also through a symbolic link, if the file exceedsMAX_INPUT_BYTES, or if its SHA-256 differs frominput.sha256. - protocol_
supported - True if the runner accepts a worker that describes itself with
protocol. - safe_
name - True for a plain name of 1 to 80 bytes of ASCII letters, digits,
-,_and., other than.and... Worker IDs and the names of inputs, artifacts and work counters are safe names. - stage_
inputs - Copies the inputs of
sfromfromintoto/inputs, each checked bychecked_inputand synced, and points each input’sfileat its copy.