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

Function scheduleInvocation

lib/Invocation.js:232–237  ·  view source on GitHub ↗
(invocation)

Source from the content-addressed store, hash-verified

230}
231
232function scheduleInvocation(invocation) {
233 sorted.add(invocations, invocation, sorter);
234 prepareNextInvocation();
235 const date = invocation.fireDate instanceof CronDate ? invocation.fireDate.toDate() : invocation.fireDate;
236 invocation.job.emit('scheduled', date);
237}
238
239function prepareNextInvocation() {
240 if (invocations.length > 0 && currentInvocation !== invocations[0]) {

Callers 2

Job.jsFile · 0.85
scheduleNextRecurrenceFunction · 0.85

Calls 1

prepareNextInvocationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…