1.0.2 • Published 4 years ago
serverless-offline-cron-invoke v1.0.2
serverless-offline-cron-invoke
this package emulate the serverless cron feature locally using the invoke function located in the aws-sdk.
It work in conjunction with serverless-offline and will trigger an error if not defined.
usage
plugin registration
plugins:
- serverless-offline-cron-invoke
cron definition
the input and enabled params are supported the rate and cron syntaxe are supported
events:
- schedule:
rate: rate(10 minutes)
enabled: false
input:
key1: value1
key2: value2
- schedule:
rate: cron(0 12 * * ? *)
enabled: false
- schedule:
rate: rate(2 hours)
enabled: true
contribution
This package is still in an unpolished state. But sufficient for my current needs. (serverless-offline, serverless-webpack)
If you have question or find a bug, you can open an issue about it or even better, submit a pr.
1.0.2
4 years ago