skip to content
==> README.md <==
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.