سازنده عبارت Cron با اعتبارسنجی
Why this prompt matters
Cron expressions are error-prone. Showing the next 5 execution times catches off-by-one errors that would otherwise fail silently in production.
What we use it for
DevOps
Prompt
Convert the following schedule description into a cron expression. Provide: 1) The cron expression, 2) Human-readable explanation of when it runs, 3) The next 5 execution times from now, 4) Common mistakes for this type of schedule, 5) Alternative expressions if the schedule is ambiguous.
Result
**Schedule**: "Every weekday at 9 AM and 5 PM, except holidays"
**Cron Expression**: `0 9,17 * * 1-5`
**Explanation**: Runs at 9:00 AM and 5:00 PM, Monday through Friday
**Next 5 runs**: 1. Mon Apr 14, 2025 09:00 2. Mon Apr 14, 2025 17:00 3. Tue Apr 15, 2025 09:00 4. Tue Apr 15, 2025 17:00 5. Wed Apr 16, 2025 09:00
**Note**: Cron cannot exclude holidays natively. Implement holiday checking in your application logic.
Cron expressions are error-prone. Showing the next 5 execution times catches off-by-one errors that would otherwise fail silently in production.
This prompt demonstrates a structured approach to devops, producing consistent, high-quality results that can be iterated upon.