lifecycle
lifecycle
¶
Workspace lifecycle management for Marianne jobs.
Handles archival of workspace files when --fresh is used on self-chaining jobs. This prevents stale validation artifacts from causing false-positive validations on subsequent iterations.
Classes¶
WorkspaceArchiver
¶
Archives workspace files to numbered subdirectories.
Used when --fresh flag clears state, to also move non-essential workspace files out of the way so validations (file_exists, command_succeeds) don't pass on stale artifacts from previous iterations.
Source code in src/marianne/workspace/lifecycle.py
Functions¶
archive
¶
Archive non-preserved workspace files.
Returns:
| Type | Description |
|---|---|
Path | None
|
Path to the created archive directory, or None if nothing was archived. |