skip to content
[readonly]

Job changes as control words: job submit (items, op, priority, attempts, deadline, results, setup, members), cancel, forget, tone

sh
$ sexc add @ajax/mesh-jobs-req
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 05:24v/# 1 version
  • drwxr-xr-x-Oct 27 05:24files/# the files of 0.1.0
latest
0.1.0, published Oct 27 05:24 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-abi-base ^0.1.0, @ajax/mesh-abi-name ^0.1.0, @ajax/mesh-abi-ops ^0.1.0, @ajax/mesh-jobs-id ^0.1.0, @ajax/mesh-jobs-ranges ^0.1.0, @ajax/mesh-jobs-spec ^0.1.0
dependents
@ajax/mesh-jobd, @ajax/mesh-jobs-node
keywords
mesh alphaos jobs control parser
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-jobs-req
repository
https://github.com/thomasdavis/alpha-c-mesh
==> README.md <==
1# @ajax/mesh-jobs-req
2
3A change of the job table, as the control port's words (the words after `job`):
4
5```
6job submit <program>[,<program>..] items <n | a-b | a- | a,b-c,..> [op <o>] [priority <p>]
7           [attempts <a>] [deadline <secs>] [results collect|nonzero|none] [setup <op>:<arg>,..]
8           [members <k>,..]
9job cancel <term>.<n>
10job forget <term>.<n>
11job tone <term>.<n> aces|reinhard
12```
13
14Parsing follows the Rust's rules exactly. `items 9` means 0..9. `op` and `setup` take `0x` hex. An
15endless job can't collect per-item results. There are at most 16 setup tasks. Every error message is
16the Rust's, word for word.
17
18## Ported from
19
20[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT):
21`crates/mesh-host/src/jobs.rs`: `Submit`, `SUBMIT_USAGE`, `int`, `Req` (`parse`).
22
23## Tests
24
25`tests/req.c`: 36 control lines, valid and not, each answered as the Rust answers it (golden answers
26from the Rust), including the requests of the Rust's `ops_frames_and_the_merge` and
27`a_job_of_two_programs`.
28
29## Licence
30
31MIT. See the repository's LICENSE.