(set, cb)
| 210 | } |
| 211 | |
| 212 | isInSet(set, cb) { |
| 213 | const promise = this.queue |
| 214 | ._commandable() |
| 215 | .then((client) => |
| 216 | helpers.callAsync((done) => |
| 217 | client.sismember(this.queue.toKey(set), this.id, done) |
| 218 | ) |
| 219 | ) |
| 220 | .then((result) => result === 1); |
| 221 | |
| 222 | if (cb) helpers.asCallback(promise, cb); |
| 223 | return promise; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Compute the delay for rescheduling the job after it fails. |
no test coverage detected