1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! The two event vocabularies: what a job runner streams (`JobRuntimeEvent`) and
//! what the scheduler publishes to observers (`JobEvent`).
use JobProgress;
/// One item a job runtime (image generation) streams back. The sidecar job pump
/// emits `Started`/`Progress`/`Preview`/`Result`; `Status` and `Artifacts` are
/// added by the scheduler layer that wraps the pump.
/// What the scheduler publishes to `events(id)` observers. Coarser than the
/// runtime stream: it collapses the runner's ticks into the observable state.