This class abstracts away the "emission" of events/signals relating to job statuses via mutations to the database.

Constructors

Methods

  • Gets all events associated with a given job ordered in reverse chronological order of creation.

    Parameters

    • jobId: string

      id of job to request

    Returns Promise<Event[]>

    list of events

  • Gets all logs associated with a given job in reverse chronological order of creation.

    Parameters

    • jobId: string

      id of job to request

    Returns Promise<Log[]>

    list of logs

  • This function processes a event of a given type for a given job. A message is also associated with the event.

    Parameters

    • job: Job

      the job the event pertains to

    • type: string

      the type of the event -- JOB_INIT | JOB_ENDED | JOB_FAILED

    • message: string

      message associated with the event

    Returns Promise<void>

  • Handles any logs that are made during execution.

    Parameters

    • job: Job

      job the log pertains to

    • message: string

      content of the log

    Returns Promise<void>

Generated using TypeDoc