Function delByFunction

    • will delete all jobs in the given queue of the named function/class
    • will not prevent new jobs from being added as this method is running
    • will not delete jobs in the delayed queues

    Inputs:

    • q: Which queue/priority is to run on?
    • taskName: The name of the job, likely to be the same name as a tak.
    • start? - starting position of task count to remove
    • stop? - stop position of task count to remove

    Parameters

    • q: string
    • taskName: string
    • Optionalstart: number
    • Optionalstop: number

    Returns Promise<number>