Skip to content

Update: Search checkpoint across all Runs in Job for --resume-from #79

@FL4TLiN3

Description

@FL4TLiN3

Background

In #78, the --resume-from option currently searches for a checkpoint only in the most recent Run of a Job:

const run = await getMostRecentRunInJob(jobId)
checkpoint = await getCheckpointById(jobId, run.runId, input.resumeFrom)

This fails when the specified checkpointId exists in a previous Run within the same Job.

Proposed Solution

Add a findCheckpointInJob(jobId, checkpointId) function that searches across all Runs in a Job:

checkpoint = await findCheckpointInJob(jobId, input.resumeFrom)

Acceptance Criteria

  • Add findCheckpointInJob(jobId: string, checkpointId: string) to run-manager.ts
  • Update context.ts to use the new function
  • Add tests for checkpoint search across multiple Runs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions