Manages

Constructors

  • Constructs the supervisor. Populates the instance variables with trackers for all the HPCs in the config. Creates the master maintainer.

    Returns default

Properties

cancelJobs: Record<string, Job[]> = {}
emitter: default = ...
jobPoolCapacities: Record<string, number> = {}
jobPoolCounters: Record<string, number> = {}
maintainerMasterEventEmitter: EventEmitter<DefaultEventMap> = ...
maintainerMasterThread: null | Timeout = null
queueConsumeTimePeriodInSeconds: number = config.queue_consume_time_period_in_seconds
queues: Record<string, JobQueue> = {}
runningJobs: Record<string, Job[]> = {}

Methods

  • Cancels the job associated with the given job id.

    Parameters

    • jobId: string

    Returns null | Job

    the job that was cancelled

  • Creates the main maintainer for all job execution. Runs in an infinite spaced loop. Ends on destruction.

    Returns void

  • Creates an object that keeps track of a job throughout its lifecycle on the HPC, recording changes in internal variables.

    Parameters

    Returns Promise<void>

  • Adds a job to the job queue.

    Parameters

    • job: Job

      job to add

    Returns Promise<void>

Generated using TypeDoc