MCPcopy Create free account
hub / github.com/actionhero/node-resque / enqueueIn

Method enqueueIn

src/core/queue.ts:162–171  ·  view source on GitHub ↗

* - 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,
  )

Source from the content-addressed store, hash-verified

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

Callers 10

bootFunction · 0.95
bootFunction · 0.95
bootFunction · 0.95
reEnqueueMethod · 0.80
afterPerformMethod · 0.80
bootFunction · 0.80
ioredis.tsFile · 0.80
ioredis-mock.tsFile · 0.80
queue.tsFile · 0.80

Calls 1

enqueueAtMethod · 0.95

Tested by

no test coverage detected