(job)
| 61 | } |
| 62 | |
| 63 | function cancelJob(job) { |
| 64 | let success = false; |
| 65 | if (job instanceof Job) { |
| 66 | success = job.cancel(); |
| 67 | } else if (typeof job == 'string' || job instanceof String) { |
| 68 | if (job in scheduledJobs && Object.prototype.hasOwnProperty.call(scheduledJobs, job)) { |
| 69 | success = scheduledJobs[job].cancel(); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | return success; |
| 74 | } |
| 75 | |
| 76 | function gracefulShutdown() { |
| 77 | const jobs = Object.keys(scheduledJobs).map(key => scheduledJobs[key]); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…