Cron 표현식 생성기& 비주얼 빌더
Cron 표현식을 시각적으로 구성. 실시간 설명과 다음 10회 실행 미리보기 제공.
Cron 표현식
직접 편집 — 선택기가 자동 동기화
분시일월요일
프리셋
분
시
일
월
요일
부터까지
스케줄
At 09:00 on weekdays
0 9 * * 1-5다음 10회 실행현재 로컬 시간 기준
1Fri, May 29, 09:00
now2Mon, Jun 1, 09:00
in 3d 0h3Tue, Jun 2, 09:00
in 4d 0h4Wed, Jun 3, 09:00
in 5d 0h5Thu, Jun 4, 09:00
in 6d 0h6Fri, Jun 5, 09:00
in 7d 0h7Mon, Jun 8, 09:00
in 10d 0h8Tue, Jun 9, 09:00
in 11d 0h9Wed, Jun 10, 09:00
in 12d 0h10Thu, Jun 11, 09:00
in 13d 0h이 도구가 도움이 되었나요?
Cron 표현식 빌더란
Cron 표현식 빌더는 암호화된 구문을 외울 필요 없이 간단한 클릭과 선택으로 복잡한 Cron 스케줄링 표현식을 구성할 수 있는 시각적 도구입니다.
Cron 작업의 일반적인 사용 사례
예약된 백업: 매일 오전 2시에 데이터베이스 백업 스크립트 실행. 작업 스케줄링: 5분마다 이메일 큐 확인. 보고서 생성: 매주 월요일 오전 9시에 주간 판매 보고서 생성. 캐시 정리: 매시간 만료된 캐시 데이터 제거.
코드 예제
JavaScript (node-cron)
import cron from "node-cron";
// Run every weekday at 9:00 AM
cron.schedule("0 9 * * 1-5", () => {
console.log("Good morning!");
sendDailyReport();
});
// Run every 30 minutes
cron.schedule("*/30 * * * *", () => {
checkForUpdates();
});Python (APScheduler)
from apscheduler.schedulers.blocking \
import BlockingScheduler
from apscheduler.triggers.cron \
import CronTrigger
scheduler = BlockingScheduler()
# Every day at midnight
@scheduler.scheduled_job(
CronTrigger.from_crontab("0 0 * * *")
)
def nightly_cleanup():
clean_temp_files()
scheduler.start()GitHub Actions
# .github/workflows/scheduled.yml
name: Scheduled Task
on:
schedule:
# UTC time — runs daily at 01:00 UTC
- cron: "0 1 * * *"
workflow_dispatch: # manual trigger
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm run buildLinux Crontab
# Edit crontab: crontab -e # View crontab: crontab -l # Backup database daily at 3:30 AM 30 3 * * * /usr/local/bin/backup.sh # Rotate logs every Monday at midnight 0 0 * * 1 /usr/sbin/logrotate /etc/logrotate.conf # Check disk space every 15 minutes */15 * * * * df -h > /tmp/disk.log
자주 묻는 질문
What are the 5 fields in a Cron expression?
A standard Cron expression has 5 space-separated fields, from left to right: Minute (0-59), Hour (0-23), Day of Month (1-31), Month (1-12), and Day of Week (0-7, where both 0 and 7 represent Sunday). For example, "0 9 * * 1-5" means every weekday at 9:00 AM.
What's the difference between * and */5?
The asterisk * matches every possible value in that field — e.g., * in the minute field means every minute. The */5 syntax is a step value: starting from the minimum, execute every 5 units. So */5 in the minute field fires at 0, 5, 10, 15...55. You can also set a custom start: 2-30/5 means every 5 minutes from minute 2 through 30.
Can I specify both day-of-month and day-of-week?
Yes, but note the special Unix cron behavior: when both day-of-month and day-of-week are set (not *), they form an OR condition, not AND. For example, "0 9 15 * 1" runs at 9:00 on the 15th of every month OR every Monday — not only when the 15th falls on a Monday.
How do I schedule a task for 2:30 AM daily?
Use the expression "30 2 * * *". The first field (30) is the minute, the second field (2) is the hour (2 AM), and the three asterisks mean every day, every month, any weekday. Cron uses 24-hour time, so 2:30 PM would be "30 14 * * *".
What special characters can I use in Cron expressions?
Common special characters include: * (match all values), comma (list values like 1,3,5), hyphen (define range like 1-5), and slash (step values like */10). Some systems also support L (last day), W (weekday), and # (nth weekday), but standard 5-field cron uses only the first four.
Which systems are compatible with the generated expressions?
This tool generates standard 5-field Cron expressions compatible with virtually all major platforms: Linux/macOS crontab, Docker, Kubernetes CronJob, GitHub Actions (schedule trigger), CI/CD systems (Jenkins, GitLab CI), cloud providers (AWS CloudWatch, Google Cloud Scheduler, Azure Functions), and most task scheduling frameworks.