소스 정보
- 저장소
- mikailustuner/OmniRule
- 최근 소스 활동
- 2026년 5월 8일 23:36
- 감지된 SKILL.md 언어
- 영어
- 스타
- 5
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/mikailustuner/OmniRule --skill cron-jobs명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | cron-jobs |
| description | Cron jobs: Scheduling patterns, idempotency strategy, failure handling, monitoring. |
| triggers | {"keywords":["cron","schedule","recurring","job","BullMQ","queue","worker","background"]} |
| auto_load_when | Setting up scheduled or background jobs |
| agent | devops-engineer |
| tools | ["Read","Write","Bash"] |
Focus: Scheduling, reliability, failure handling
Cron makes sense when:
├── Scheduled tasks needed
│ └── Daily reports, cleanup jobs
│ └── Hourly sync, weekly summaries
│
├── Not real-time critical
│ └── Can tolerate few minutes delay
│ └── Batch processing
│
├── Predictable schedule
│ && Fixed times, known intervals
│ && Not based on events
│
└── Simple trigger mechanism
└── Time-based only
└── No complex dependencies
Don't use cron when:
├── Event-driven
└── Triggers on user actions
└── Use message queues instead
│
├── Real-time needed
└── Sub-second requirements
└── Use streaming
│
└── Complex dependencies
&& Job B depends on Job A result
&& Use workflow orchestrator
Why idempotency matters:
├── Cron can run multiple times
│ └── Previous run didn't complete
│ || System restarted mid-run
│
├── Network failures cause retries
└── Must handle duplicate execution
How to achieve:
├── Check before work
&& Query: "Is this already processed?"
&& Upsert instead of insert
│
├── Use unique constraints
&& Database prevents duplicates
└── Deduplicate at source
│
├── Track processed items
&& Record each processed ID
&& Skip if already in list
│
└── Timestamp-based
&& Process records created in time window
&& No reprocessing of old records
What to do on failure:
├── Retry strategy
&& Internal retry: 3 attempts with backoff
&& External: let cron retry next schedule
&& Exponential backoff
│
├── Dead letter
&& Move to failed queue
&& Manual investigation
&& Don't block next run
│
├── Alerts
&& Notify on failure
&& Include: job name, time, error
&& Don't alert on every retry
│
└── Partial progress
&& Save checkpoint
&& Resume from last point
&& Track what succeeded
What to monitor:
├── Execution status
&& Did it run at all?
&& Did it complete?
&& How long did it take?
│
├── Output/logs
&& Store where searchable
&& Include context (date, params)
│
└── Metrics
&& Records processed
&& Errors encountered
&& Time trend
Alerting thresholds:
├── Didn't run → Critical
&& Schedule missed
&& Cron broken
│
├── Failed → Warning
&& Business impact
&& Needs investigation
│
├── Slow → Warning
&& Resource issues
&& Data growth
│
└── Zero output → Warning
&& Business unusual?
|| Data pipeline broken
How to handle time zones:
├── UTC for infrastructure
&& Cron runs in UTC
&& Logs in UTC
&& Simple, consistent
│
├── Business timezone for business
&& "Daily report at 9am business time"
&& Calculate UTC at runtime
&& Document business hours
│
└── User timezone for UI
&& Show next run in user time
|| Store schedule in business time
❌ Multiple instances running the same cron simultaneously
✅ Distributed lock (Redis SET NX) before executing cron job
❌ Cron jobs with no logging or alerting
✅ Log start/end/duration; alert on failure or long runtime
❌ Cron times in local timezone
✅ Always use UTC in cron expressions
❌ Heavy work blocking the cron process
✅ Cron dispatches a job to a queue; worker handles the heavy lifting
❌ No graceful shutdown handling
✅ Handle SIGTERM; complete current job, reject new during shutdown
| Expression | Meaning | Example |
|---|---|---|
* * * * * | Every minute | Health check |
0 * * * * | Every hour | Hourly rollup |
0 0 * * * | Daily midnight UTC | Daily report |
0 0 * * 0 | Weekly Sunday | Weekly summary |
*/5 * * * * | Every 5 minutes | Polling job |
| Library | Runtime | Note |
|---|---|---|
| node-cron | Node.js | In-process |
| BullMQ repeat | Node.js | Queue-backed |
| Inngest | Serverless | Managed |
| GitHub Actions schedule | CI | Simple periodic |
SOC 직업 분류 기준