Function del

  • Delete a previously enqueued task, which hasn't been run yet, from a queue. Will throw an error if redis cannot be reached.

    Inputs:

    • q: Which queue/priority is the task stored on?
    • taskName: The name of the job, likely to be the same name as a tak.
    • args: The arguments of the job. Note, arguments passed to a Task initially may be modified when enqueuing. It is best to read job properties first via api.tasks.queued or similar method.
    • count: Of the jobs that match q, taskName, and args, up to what position should we delete? (Default 0; this command is 0-indexed)

    Parameters

    • q: string
    • taskName: string
    • Optionalargs: TaskInputs
    • Optionalcount: number

    Returns Promise<number>