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

Method encode

src/core/queue.ts:69–75  ·  view source on GitHub ↗
(q: string, func: string, args: Array<any> = [])

Source from the content-addressed store, hash-verified

67 }
68
69 encode(q: string, func: string, args: Array<any> = []) {
70 return JSON.stringify({
71 class: func,
72 queue: q,
73 args: args,
74 });
75 }
76
77 /**
78 * - Enqueue a named job (defined in `jobs` to be worked by a worker)

Callers 5

enqueueMethod · 0.95
enqueueAtMethod · 0.95
delMethod · 0.95
delDelayedMethod · 0.95
scheduledAtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected