MCPcopy
hub / github.com/node-cron/node-cron / start

Method start

src/tasks/inline-scheduled-task.ts:165–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 }
164
165 start(): void {
166 if(this.runner.isStopped()){
167 this.runner.start();
168 this.stateMachine.changeState('idle');
169 this.emitter.emit('task:started', this.createContext(new Date()));
170 }
171 }
172
173 stop(): void {
174 if(this.runner.isStarted()) {

Callers 1

startDaemonFunction · 0.95

Calls 4

createContextMethod · 0.95
isStoppedMethod · 0.80
startMethod · 0.65
changeStateMethod · 0.45

Tested by

no test coverage detected