Skip to content
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

Schedule tasks with cron() format need to follow AWS rules #2209

Open
philsheard opened this issue Feb 9, 2021 · 1 comment
Open

Schedule tasks with cron() format need to follow AWS rules #2209

philsheard opened this issue Feb 9, 2021 · 1 comment

Comments

@philsheard
Copy link

Context

I was deploying an update via Zappa and got an error with the ScheduleExpression.

botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the PutRule operation: Parameter ScheduleExpression is not valid.

I hadn't made changes to the task schedule the Zappa settings so I guess Amazon might have changed the requirements in their backend.

Possible Fix

Some sort of check for validity in the settings would be good, but for now just a reference to these rules in the docs might help others.

Steps to Reproduce

  1. Set a schedule task using standard cron syntax:
"events": [{
  "function": "myapp.callable",
  "expression": "cron(15 * * * ? *)"
}]
  1. Deploy the branch
  2. See error

Your Environment

  • Zappa version used: 0.52.0
  • Operating System and Python version: OSX, Python 3.8.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant