Currently it is possible to pause/resume job, but it is not possible to know if queue is paused (locally or globally) after restart. Only way is to get redis key state by hands.
It would be nice to have something like Queue.prototype.isPaused(isLocal?: boolean): Promise<boolean> method
There is no API method as far as I'm aware but you can check if the key bull:${queueName}:meta-paused is 1 directly on Redis.
@bogini yes i know, i just think it should exposed as Queue method.
@bogini can you provide an example code to achieve that? it might be useful for newbies like the one writing here ;)
Most helpful comment
@bogini can you provide an example code to achieve that? it might be useful for newbies like the one writing here ;)