cron
The cron source triggers a function on a schedule.
fnrunner Key
fnrun.source/cron
Configuration
The configuration is a cronspec that supports seconds
as an optional input as well as non-standard descriptors such as @weekly
.
Inputs
The input is an empty object.
Examples
The following example shows how to invoke a function once every second.
source:
fnrun.source/cron: '@every 1s'
fn:
fnrun.fn/cli: node ./function.js
The following example also invokes a function once every second. It demonstrates the optional seconds entry.
source:
fnrun.source/cron: '* * * * * *'
fn:
fnrun.fn/cli: node ./function.js