* - In ms, the number of ms to delay before this job is able to start being worked on. * - Depending on the number of other jobs in `queueName`, it is likely that this job will not be excecuted at exactly the delay specified, but shortly thereafter. * - other options the same as `queue.enqueu
(
time: number,
q: string,
func: string,
args: Array<any> = [],
suppressDuplicateTaskError = false,
)
| 160 | * - other options the same as `queue.enqueue` |
| 161 | */ |
| 162 | async enqueueIn( |
| 163 | time: number, |
| 164 | q: string, |
| 165 | func: string, |
| 166 | args: Array<any> = [], |
| 167 | suppressDuplicateTaskError = false, |
| 168 | ) { |
| 169 | const timestamp = new Date().getTime() + parseInt(time.toString(), 10); |
| 170 | return this.enqueueAt(timestamp, q, func, args, suppressDuplicateTaskError); |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * - queues is an Array with the names of all your queues |
no test coverage detected