Skip to main content

Variable: ScheduledTaskEvents

const ScheduledTaskEvents: object

Events emitted during the process setting up the scheduler and running a task. You can use these events to trace the progress for debugging purposes.

Type declaration

ScheduledTaskError

ScheduledTaskError: "scheduledTaskError"

Event that is emitted when a task's "run" method throws an error

ScheduledTaskFinished

ScheduledTaskFinished: "scheduledTaskFinished"

Event that is emitted when a task's "run" method finishes, regardless of whether an error occurred or not

ScheduledTaskNotFound

ScheduledTaskNotFound: "scheduledTaskNotFound"

Event that is emitted if a task piece is not found in the store

ScheduledTaskRun

ScheduledTaskRun: "scheduledTaskRun"

Event that is emitted before a task's "run" method is called

ScheduledTaskStrategyClientError

ScheduledTaskStrategyClientError: "scheduledTaskStrategyClientError"

Event that is emitted when the scheduled task client encounters an error.

ScheduledTaskStrategyConnectError

ScheduledTaskStrategyConnectError: "scheduledTaskStrategyConnectError"

Event that is emitted when the scheduler fails to connect to the server (i.e. redis)

ScheduledTaskStrategyWorkerError

ScheduledTaskStrategyWorkerError: "scheduledTaskStrategyWorkerError"

Event that is emitted when the scheduled task worker encounters an error.

ScheduledTaskSuccess

ScheduledTaskSuccess: "scheduledTaskSuccess"

Event that is emitted when a tasks's "run" method is successful

Source

lib/types/ScheduledTaskEvents.ts:7