مولد Cron
رائج 🔥بناء وشرح تعبيرات cron
كيفية استخدام مولد Cron
- 1استخدم المُنشئ المرئي لاختيار التوقيت
- 2أو أدخل تعبير Cron مباشرة
- 3راجع التفسير البشري المقروء
- 4تحقق من مواعيد التنفيذ القادمة
حول مولد Cron
مُنشئ Cron هو أداة لإنشاء وفهم وتحليل تعبيرات Cron لجدولة المهام. يوفر واجهة مرئية سهلة لبناء الجداول الزمنية مع عرض المواعيد القادمة التالية. لا حاجة لحفظ صياغة Cron المعقدة.
المميزات الرئيسية لـ مولد Cron
- مُنشئ مرئي تفاعلي
- تفسير نصي مقروء
- عرض 5 مواعيد قادمة
- دعم تعبيرات Cron القياسية وCronTab
- التحقق من الصحة
- Compatible with Unix crontab, GitHub Actions, AWS EventBridge, and Kubernetes
- Works entirely in-browser — no server required
- One-click copy of the generated expression
أمثلة
كل يوم الاثنين
مهمة أسبوعية كل اثنين الساعة 9 صباحًا
المدخلات
0 9 * * 1
النتيجة
تعمل الساعة 9:00 صباحًا كل يوم اثنين
Run a job every weekday at 9 AM
Schedule a morning report to run on Monday through Friday at 9 AM.
المدخلات
Minute: 0, Hour: 9, Day: *, Month: *, Weekday: 1-5
النتيجة
Cron: 0 9 * * 1-5 — Explanation: At 09:00 on Monday through Friday
حالات الاستخدام الشائعة
- جدولة نسخ احتياطية
- إعداد مهام Cron في Linux
- تكوين GitHub Actions المجدولة
- إدارة مهام قواعد البيانات الدورية
- مراقبة الأنظمة
- Setting up health check or monitoring pings at regular intervals
استكشاف الأخطاء
تعبير غير صالح
الحل
تأكد من وجود 5 حقول بالترتيب: دقيقة ساعة يوم_الشهر شهر يوم_الأسبوع
الجدول لا يعمل كما هو متوقع
الحل
تذكر أن أيام الأسبوع: 0=الأحد، 1=الاثنين، ..., 6=السبت
Expression with */5 runs at unexpected minutes
الحل
*/5 means every 5 minutes starting from 0: 0, 5, 10, 15... This is standard step syntax. If you need to start at a different offset, use a comma-separated list (e.g., 3,8,13,18).
الأسئلة الشائعة
ما معنى * في تعبير Cron؟
* تعني 'كل قيمة ممكنة' في ذلك الحقل — مثلاً * في الساعات تعني كل ساعة.
هل يدعم تعبيرات Cron بـ 6 حقول؟
الأداة تدعم الصيغة القياسية بـ 5 حقول والصيغة الموسعة بـ 6 حقول (مع حقل الثواني).
What does */ mean in a cron expression?
*/n is step syntax meaning "every n units". For example, */15 in the minute field means every 15 minutes (0, 15, 30, 45). */2 in the hour field means every 2 hours.
How do I run a cron job every 5 minutes?
Use */5 in the minute field: */5 * * * *. This runs at 0:00, 0:05, 0:10, etc. every hour every day.
Does cron support seconds?
Standard Unix crontab does not support seconds — the minimum interval is 1 minute. Some platforms like Spring Scheduler and Quartz use a 6-field format with seconds. GitHub Actions and AWS EventBridge use the standard 5-field format.
What timezone does cron use?
Standard crontab uses the local system timezone. Cloud schedulers like AWS EventBridge default to UTC. Always check and document the timezone assumption for your scheduled jobs to avoid confusion when DST changes occur.
Is my data sent to a server?
No. All cron expression generation and validation is performed locally in your browser. No data is transmitted or stored.
Can I use this for GitHub Actions?
Yes. GitHub Actions uses the standard 5-field cron syntax in the on.schedule.cron field. Note that GitHub Actions scheduled workflows run in UTC timezone.