1 7 * * 1/5 what is wrong with this cron expression?
- User
1 7 * * 1/5 what is wrong with this cron expression?
Assistant
The cron expression
1 7 * * 1/5is invalid because the fifth field, which represents the day of the week, must be a value between 0 and 6, where 0 represents Sunday and 6 represents Saturday. The value1/5is not a valid day of the week.To fix this, you can replace
1/5with a valid day of the week, such as5for Friday. So the corrected cron expression would be:code1 7 * * 5This will schedule the task to run at 1 minute past 7am on every Friday.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.