ApiModule · packages/server/src/services/update-job.ts:157

UpdateJobService

component

No JSDoc comment in source yet.

API

@Component()
export class UpdateJobService implements UpdateJob {
  status(): UpdateJobStatus;
  start(cliEntry: string | null, targetVersion: string | null): UpdateJobStatus;
}

Dependencies & Wiring

Extracted from class decorators
implementsinterfaces

Methods (2)

status

status(): UpdateJobStatus

The job as it stands (idle / running with progress / done with its result).

@returnsUpdateJobStatus

start

start(cliEntry: string | null, targetVersion: string | null): UpdateJobStatus

Starts a run unless one is in flight (then it is simply joined). cliEntry null — no CLI to run — ends at once as unsupported, the same answer the old blocking route gave, so the page renders the reason rather than a run that never moves.

@paramcliEntrystring | null
@paramtargetVersionstring | null
@returnsUpdateJobStatus