Expand description
Small blocking worker SDK. Solver state is private to each task; results are committed before a completed task is reported. No solver checkpoint is implied.
Structs§
- Task
Result - What
Prepared::solvereturns for one task.
Traits§
- Prepared
- A validated job, ready to solve its tasks.
executecallssolvefrom up toouter_workersthreads at once. - Worker
- The solver behind one worker ID.
runturns it into a worker binary with the commandsdescribe,validateandexecute.
Functions§
- description
- A worker description of protocol
PROTOCOL: the engine and its version, the profiles, the registered problems and the largestinner_threads. - execute
- Executes the job in the attempt directory
dir: validatesresolved.json, solves the tasks on up toouter_workersthreads, appends each result toresults.jsonland writesrun.json. Acancel.requestfile or the wall time stops the remaining tasks. An attempt that already has a journal or a manifest is refused: a job is never resumed. - run
- The
mainof a worker binary:describe,validate SPECorexecute JOB_DIRECTORY. It prints its JSON answer, or exits with status 1 and{"error":{"code":"worker_error","message":...}}on standard error.