archive
archive
¶
Archived-task queries — reading the immutable snapshots _archive_task
leaves behind on deletion. Writing the archive is part of the deletion
choreography and lives in terok.lib.orchestration.tasks.lifecycle.
__all__ = ['ArchivedTask', 'list_archived_tasks', 'task_archive_list', 'task_archive_logs']
module-attribute
¶
ArchivedTask(archive_dir, archived_at, task_id, name, mode, exit_code)
dataclass
¶
list_archived_tasks(project_name)
¶
Return archived tasks for project_name, sorted newest-first.
Source code in src/terok/lib/orchestration/tasks/archive.py
task_archive_list(project_name)
¶
Print archived tasks for project_name.
Source code in src/terok/lib/orchestration/tasks/archive.py
task_archive_logs(project_name, archive_id)
¶
Return the log file path for an archived task identified by archive_id.
archive_id is matched against archive directory names (prefix match).
Returns the log file path if found, or None.