Skip to content

Integrate INITIALIZING job status#249

Merged
moshe-kabala merged 2 commits into
masterfrom
update-job-status
Jun 16, 2026
Merged

Integrate INITIALIZING job status#249
moshe-kabala merged 2 commits into
masterfrom
update-job-status

Conversation

@moshe-kabala

Copy link
Copy Markdown
Contributor

Summary

The regenerated tensorleapapi adds JOBSTATUS_INITIALIZING — the engine scheduler / node-server now report a job's build-dependencies (pippin) phase as a first-class status. This integrates it into every place the CLI checks job status.

Change

  • pkg/api/utils.goIsJobRunning now includes JOBSTATUS_INITIALIZING.

That's the single behavioral change; it's the central predicate, so it propagates everywhere:

  • Version status indicator (pkg/model/utils.go): a version whose latest job is INITIALIZING now shows RUNNING instead of falling through to FINISHED.
  • Wait loops (pkg/code, pkg/model, pkg/project api.go): they switch only on IsJobFinished / IsJobFailed, so an INITIALIZING job already falls through and keeps polling — no change needed, just confirmed correct.

Left unchanged (intentionally)

  • IsJobFailed / IsJobFinishedINITIALIZING is neither terminal nor a failure.
  • mapStatus (StatusEnumStepStatus) — that maps per-event statuses; INITIALIZING is a job status, not an event status, so events never carry it.

Test plan

  • go build ./... clean
  • go vet ./pkg/api/... ./pkg/model/... clean
  • leap push -e with changed deps → version shows RUNNING during the initialization phase, then transitions normally
  • leap version listing shows the running indicator (not v/x) for an initializing version

Paired with

  • engine #2354, node-server #1748, web-ui #3345

🤖 Generated with Claude Code

moshe-kabala and others added 2 commits June 15, 2026 15:20
The updated tensorleapapi adds JOBSTATUS_INITIALIZING (the engine/node-server
report a job's build-dependencies phase as a first-class status). Add it to
IsJobRunning so every job-status check treats it as in-progress:

  - the version status indicator (model/utils.go) shows RUNNING for a version
    whose latest job is initializing, instead of falling through to FINISHED.
  - the push/code/model/project wait loops already key only on
    IsJobFinished/IsJobFailed, so an INITIALIZING job correctly falls through
    and keeps polling.

IsJobFailed/IsJobFinished are unchanged (INITIALIZING is neither terminal nor
a failure), and the event-status mapping (mapStatus) is untouched since
INITIALIZING is a job status, not a per-event StatusEnum.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@moshe-kabala moshe-kabala merged commit 9cae5b8 into master Jun 16, 2026
2 checks passed
@moshe-kabala moshe-kabala deleted the update-job-status branch June 16, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants