Files

16 lines
765 B
Markdown

# Runner protocol
The control plane hands a worker a job and reads its results back over one
newline-delimited JSON stream.
| Message | Direction | Meaning |
|-----------|------------------|------------------------------------------|
| `hello` | worker -> server | worker id, browser version, screen size |
| `job` | server -> worker | scenario, site URL, deadline |
| `step` | worker -> server | one action and its outcome |
| `shot` | worker -> server | screenshot reference |
| `done` | worker -> server | verdict and the reason for it |
A worker that sends no message for 90 seconds is considered lost and its job is
handed to another worker.