serverless-local-schedule
serverless-local-schedule copied to clipboard
Cron schedule with / in minutes field is corrupted
Hi, when using schedule as
- schedule:
rate: cron(0/2 7-20 ? * * *)
timezone: "Europe/Amsterdam"
we are receiving schedule only for minute "0" in AWS. Part after / is missing in every 6 expressions generated by local-schedule plugin.
After checking code I think it is caused by local-crontab library, which is turning cron expressions to multiple UTC based expressions. It is removing wildcard from minute field, so in fact there is no way to create cron expression running every X minutes.
Can this be fixed? local-crontab is not maintained for 2 years already.