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

Method key

src/plugins/JobLock.ts:72–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 key() {
73 if (this.options.key) {
74 return typeof this.options.key === "function"
75 ? this.options.key.apply(this)
76 : this.options.key;
77 } else {
78 const flattenedArgs = JSON.stringify(this.args);
79 return this.worker.connection.key(
80 "workerslock",
81 this.func,
82 this.queue,
83 flattenedArgs,
84 );
85 }
86 }
87}

Callers 9

beforePerformMethod · 0.95
afterPerformMethod · 0.95
afterPerformMethod · 0.45
retryKeyMethod · 0.45
failureKeyMethod · 0.45
queue.tsFile · 0.45
connection.tsFile · 0.45
worker.tsFile · 0.45
jobLock.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected