Function enqueueIn

  • Enqueue a task to be performed in the background, at a certain number of ms from now. Will throw an error if redis cannot be reached.


    • timestamp: At what time the task is able to be run. Does not guarantee that the task will be run at this time. (in ms)
    • 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


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

    Returns Promise<void>

Generated using TypeDoc