-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Background
In #78, the Job schema was added but the actual persistence and lifecycle management is not implemented yet. Currently:
jobIdis passed through Run/Checkpoint/Event- Storage structure uses
perstack/jobs/{jobId}/runs/{runId}/ - But no
job.jsonis created or managed
Proposed Implementation
Job Persistence
- Create
job.jsonwhen a new Job starts - Update
job.jsonon each Run completion
Job Lifecycle
- Track
totalSteps(sum of all Run stepNumbers) - Enforce
maxStepsat Job level - Update
statusbased on Run outcomes
File Structure
perstack/jobs/{jobId}/
├── job.json # Job metadata (NEW)
└── runs/{runId}/
├── setting.json
├── checkpoints/
└── events/
Acceptance Criteria
- Implement
storeJobandretrieveJobfunctions - Create job.json on
perstack run(new Job) - Update job.json on Run completion
- Track and enforce
totalSteps/maxStepsat Job level - Add
--max-stepsoption that applies to Job (not Run)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels