You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Runs at midnight UTC daily
"0 5 * * ? *" // 5:00 AM UTC
while documentation on https://docs.amplify.aws/react/build-a-backend/functions/scheduling-functions/ says to do // every tuesday at 5pm
"0 17 * ? 3 *", the 3 and ? are transposed and aws fails with error: Failed to instantiate schedule for nodejs function
Caused By: Cron field for month must be a whole number between 1 and 12\r\nCron expressions cannot have both day-of-month and day-of-week defined, you must use a ? in one of the fields
Resolution: See the underlying error message for more details.
fix documentation please.
Reproduction steps
attempt to build any function with the cron sending the provided command being improperly formatted.
The text was updated successfully, but these errors were encountered:
Hey @spyderbr6, thank you for reporting this. The cron expression should be 0 17 ? * 3 * for a run on every tuesday at 5pm.
Transferring this to the documentation repository to update the documentation.
ykethan
transferred this issue from aws-amplify/amplify-backend
Dec 30, 2024
Environment information
Describe the bug
while documentation on https://docs.amplify.aws/react/build-a-backend/functions/scheduling-functions/ says to do // every tuesday at 5pm
"0 17 * ? 3 *", the 3 and ? are transposed and aws fails with error: Failed to instantiate schedule for nodejs function
Caused By: Cron field for month must be a whole number between 1 and 12\r\nCron expressions cannot have both day-of-month and day-of-week defined, you must use a ? in one of the fields
Resolution: See the underlying error message for more details.
fix documentation please.
Reproduction steps
attempt to build any function with the cron sending the provided command being improperly formatted.
The text was updated successfully, but these errors were encountered: