A job's spec (program, op, items, priority, attempts, deadline, result mode, setup, members) and its one-line text form
$ sexc add @ajax/mesh-jobs-spec- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 05:23v/# 1 version
- drwxr-xr-x-Oct 27 05:23files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 05:23 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0, @ajax/mesh-strbuf ^0.1.0, @ajax/mesh-debug-str ^0.1.0, @ajax/mesh-rs-parse ^0.1.0, @ajax/mesh-jobs-ranges ^0.1.0, @ajax/mesh-jobs-id ^0.1.0
- dependents
- @ajax/mesh-assemble, @ajax/mesh-blobd, @ajax/mesh-jobs-frame, @ajax/mesh-jobs-node, @ajax/mesh-jobs-op, @ajax/mesh-jobs-req, @ajax/mesh-jobs-select, @ajax/mesh-jobs-table
- keywords
- mesh alphaos jobs spec
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-jobs-spec
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-jobs-spec 2 3What a job is: a program (or several joined by commas, one item set leased to members running any of 4them), an op, its items, a priority, how many tries an item gets, a deadline, a result mode 5(`collect`, `nonzero`, `none`), setup tasks run before a member's first item, when it was submitted 6and which members may run it. Its one-line text form is how a Submit op carries it: 7 8``` 9id 4294967297 program p op 254 items 0-10 priority 0 attempts 3 deadline 0 mode collect setup 6:0 submitted 5 members 0x5 10``` 11 12## Ported from 13 14[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): 15`crates/mesh-host/src/jobs.rs`: `Mode`, `JobSpec` (`endless`, `programs`, `runs`, `encode`, 16`decode`). 17 18## Tests 19 20`tests/spec.c`: the text form both ways (as `ops_frames_and_the_merge` starts), several programs, 21endless items, every whitespace, and decode's refusals with the Rust's messages. 22 23## Licence 24 25MIT. See the repository's LICENSE.