feat(retention): implement Piece 2 job archival, CLI wiring, and rotation driver
This commit is contained in:
@@ -103,6 +103,10 @@ def load_job(job_name):
|
||||
# Try .json first, then .yaml (for compatibility)
|
||||
job_file = JOBS_DIR / f"{job_name}.json"
|
||||
if not job_file.exists():
|
||||
archived_file = JOBS_DIR / "archive" / f"{job_name}.json"
|
||||
if archived_file.exists():
|
||||
print(f"Error: Job '{job_name}' is archived at {archived_file}. Unarchive before dispatch (e.g. 'box job unarchive {job_name}').", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
job_file = JOBS_DIR / f"{job_name}.yaml"
|
||||
if not job_file.exists():
|
||||
print(f"Error: Job '{job_name}' not found in {JOBS_DIR}", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user