Function enqueueAt

  • Enqueue a task to be performed in the background, at a certain time in the future. Will throw an error if redis cannot be reached.

    Inputs:

    • taskName: The name of the task.
    • inputs: inputs to pass to the task.
    • queue: (Optional) Which queue/priority to run this instance of the task on.
    • suppressDuplicateTaskError: (optional) Suppress errors when the same task with the same arguments are double-enqueued for the same time

    Parameters

    • timestamp: number
    • taskName: string
    • Optional inputs: TaskInputs
    • queue: string = ...
    • suppressDuplicateTaskError: boolean = false

    Returns Promise<void>

Generated using TypeDoc