serverless / serverless-local-schedule

⚡️🗺️⏰ Schedule AWS CloudWatch Event based invocations in local time(with DST support!)
MIT License
72 stars 11 forks source link

Increments ignored #9

Open dwrz opened 5 years ago

dwrz commented 5 years ago
Serverless: Converting local crontabs to UTC crontabs...
Serverless: Converted 0/10 04-22 * * ? * America/New_York to
               0 0-3,9-23 * 1-2,12 ? *
               0 0-3,9-23 1-10 3 ? *
               0 0-2,8-23 11-31 3 ? *
               0 0-2,8-23 * 4-10 ? *
               0 0-2,8-23 1-3 11 ? *
               0 0-3,9-23 4-31 11 ? *

It looks like the plugin is ignoring the increment syntax (see Schedule Expressions Using Rate or Cron). Shouldn't the conversions be to 0/10 for the minutes field?

dschep commented 5 years ago

You are correct. Not sure why that isn't being handled correctly.

jdrakes commented 5 years ago

Any updates on this fix?

Hwan-seok commented 4 years ago

Any further updates?

dschep commented 4 years ago

@Hwan-seok, nope, this serves the purpose for which we created the library. If you need further features such as this, feel free to contribute a patch.