Function cleanOldWorkers

  • If a worker process crashes, it will leave its state in redis as "working". You can remove workers from redis you know to be over, by specificizing an age which would make them too old to exist. This method will remove the data created by a 'stuck' worker and move the payload to the error queue. However, it will not actually remove any processes which may be running. A job may be running that you have removed. Will throw an error if redis cannot be reached.


    • age: number

    Returns Promise<{
        [key: string]: any;

Generated using TypeDoc