Options
All
  • Public
  • Public/Protected
  • All
Menu

Orders Jobs in a valid topological sort.

Does not necessarily preorder everything. Uses popNextJob to return just the nextJob.

Hierarchy

  • JobOrderer

Implemented by

Index

Methods

isDone

  • isDone(): boolean
  • Returns whether all Jobs in the dependency tree are completed.

    Returns boolean

    true if all Jobs are completed, false otherwise.

popNextJob

  • popNextJob(): null | Job
  • Get the next Job that can be run.

    If a Job is returned, it will be considered to be in progress.

    Returns null | Job

    The next Job to return, or null if there are no runnable Jobs.

reportCompletedJob

  • reportCompletedJob(job: Job): void
  • Mark job as completed (run succesfully).

    Parameters

    • job: Job

      the job to mark completed.

    Returns void

reportFailedJob

  • reportFailedJob(job: Job): void
  • Mark job as failed, but not because of a job-internal error.

    I.e. if a job returns with a non-zero exit code, do not call this function with this job.

    This will mark the job to be retried.

    Parameters

    • job: Job

      the job to mark completed.

    Returns void

Generated using TypeDoc