cron: Cron Trigger
Triggers the function according to a schedule or interval, with an optional body.
Attributes
Path | Type | Description |
---|---|---|
schedule | string | A cron-like schedule (for example, */5 * * * * ) |
interval | string | An interval (for example, 1s , 30m ) |
event.body | string | The body passed in the event |
event.headers | map of string/int | The headers passed in the event |
- Either
schedule
orinterval
must be passed. - The
event.*
attributes are optional.
Example
triggers:
myCronTrigger:
kind: cron
attributes:
interval: 3s