-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cron scheduled syntax is rejected #2344
Comments
Yep, this is a bug bug. It's an issue with the schedule object check. I will submit a fix. |
Upon closer inspection, this is not a bug 😕 Probably just needs some better examples in the docs using the cron syntax. Change your ...
events:
- schedule:
rate: cron(5 8 * * ? *)
enabled: false |
Confirmed |
Now using Serverless v1.1.0, this cron syntax is failing:
with this error message:
The |
You cannot have a "?" in the year (last) field (as per the docs). I think you mean to use:
|
Closing this one as @rowanu provided a solution 👍 Let us know if this is still an issue! |
schedule rate "cron" not yet supported! we are facing this error |
Hello @veerarajuthuta - could you please share full details about your problem? It would be great to include reproducible example as well as the full output with the error. |
The error "scheduler: invalid, schedule syntax" is coming from the |
events:
- schedule: rate(10 minutes) works just fine for Is this documented anywhere? |
@RavenHursT you can open an issue in the plugin's repository. |
@mnapoli So... I take it that's a "no"? |
@RavenHursT that is an issue with the plugin. I don't know if it's documented in the plugin or not, but in any case this should be discussed there. I don't think pinging people on an unrelated issue from 2016 will yield changes on the plugin. |
@mnapoli my mistake.. I was under the impression that @dherault any chance you could shed light onto whether or not this caveat it documented somewhere. Given that so many devs rely upon |
Maybe a bug in the service, maybe a doco bug, I can't tell --
Produces this error:
Serverless Error ---------------------------------------
The documentation at https://serverless.com/framework/docs/providers/aws/events/schedule/ suggests this events / schedule / cron syntax would be OK.
This variation works fine.
The text was updated successfully, but these errors were encountered: