MCPcopy Index your code
hub / github.com/node-schedule/node-schedule / resolveAnonJobName

Function resolveAnonJobName

lib/Job.js:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13let anonJobCounter = 0;
14function resolveAnonJobName() {
15 const now = new Date()
16 if (anonJobCounter === Number.MAX_SAFE_INTEGER) {
17 anonJobCounter = 0
18 }
19 anonJobCounter++
20
21 return `<Anonymous Job ${anonJobCounter} ${now.toISOString()}>`
22}
23
24function Job(name, job, callback) {
25 // setup a private pendingInvocations variable

Callers 1

JobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…