MCPcopy Index your code
hub / github.com/node-cron/node-cron / lastRun

Method lastRun

src/tasks/scheduled-task.ts:163–163  ·  view source on GitHub ↗

* Information about the last actual execution, or `null` if the task has not * run yet. `date` reflects when the execution really ran, not when a tick was * checked.

()

Source from the content-addressed store, hash-verified

161 * checked.
162 */
163 lastRun(): LastRun | null;
164
165 on(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void): void
166 off(event: TaskEvent, fun: (context: TaskContext) => Promise<void> | void): void

Implementers 2

InlineScheduledTasksrc/tasks/inline-scheduled-task.ts
BackgroundScheduledTasksrc/tasks/background-scheduled-task/ba

Calls

no outgoing calls

Tested by

no test coverage detected