Skip to main content

Module logs

Module logs 

Source
Expand description

The worker’s log endpoint as both sides see it (the worker serves it, the webserver reads it; see archive/PROJECT.md, Task logs).

Constants§

LOG_SIZE_HEADER
The header with the log’s size in bytes when it was read.
MASK_CONTEXT
How many bytes before a part of a log the webserver reads too, masking them with the part and not showing them: a value begun there (a quoted one going on over lines) is hidden in the part too (decision 131).
MAX_CHUNK
The most bytes one request returns (and the default).
MAX_READ
The most bytes a worker’s log endpoint returns at once: a part and the bytes before it.
MIN_CHUNK
The fewest bytes one request returns when asked for less: one UTF-8 character, so a part always moves a reader on.
RUNNING_HEADER
The header saying whether the attempt still runs on the worker (true / false).
WORKER_ID_HEADER
The header naming the worker that answered.