ClaudeDevOps

أداة بناء تعبيرات Cron مع التحقق من الصحة

مشاركة:
أداة بناء تعبيرات Cron مع التحقق من الصحة

لماذا تهم هذه المطالبة

Cron expressions are error-prone. Showing the next 5 execution times catches off-by-one errors that would otherwise fail silently in production.

فيم نستخدمها

DevOps

المطالبة

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.

النتيجة

**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 عرضة للخطأ. عرض أوقات التنفيذ الخمسة القادمة يكشف أخطاء الإزاحة بمقدار واحد التي قد تفشل بصمت في بيئة الإنتاج. يوضح هذا الـ prompt نهجاً منظمًا لـ devops، ينتج نتائج متسقة وعالية الجودة يمكن التكرار والتحسين عليها.
مشاركة: