workspace
workspace
#
A live workspace: a directory under live/<owner>/ that lasts as long as it is held.
LOG_NAME = 'exec.log'
module-attribute
#
A call's log, at the workspace root and so outside every result that seals.
LOG_TAIL_LINES = 40
module-attribute
#
How much of a log a failure note or a progress display carries.
Workspace
#
A fresh directory a call writes into, deleted when the last holder lets go.
Source code in capturegraph-lib/capturegraph/recipes/scratch/store/workspace.py
log_tail(workspace, lines=LOG_TAIL_LINES)
#
The last lines lines logged in the workspace directory workspace.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace
|
Path
|
A workspace directory, which may be gone already. |
required |
lines
|
int
|
How many trailing lines to read. |
LOG_TAIL_LINES
|
Returns:
| Type | Description |
|---|---|
str | None
|
The tail, or |