Cron Job
PronunciationKRON jawb
Definition
A cron job is a task scheduled to run automatically at set times, defined with a cron expression like 0 2 * * * (every day at 2:00 am).
Where you hear it
In Linux servers, Kubernetes CronJobs, cloud schedulers and backup or cleanup scripts.
Examples
A cron job sends the weekly report every Monday at 8.
The cron job failed silently because nobody checked its logs.
The cron job deletes expired sessions every night at midnight.
Common mistake
Forgetting timezones and monitoring. A job can run at the wrong hour or fail unnoticed; log and alert on it.
Don't confuse with
A background worker queue, which runs jobs when they are triggered. Cron runs jobs on a clock.
Say it at work
- In a meeting or chat
Add a cron job to clean up old files.
- In an email or ticket
What's the schedule expression?
Keep exploring
More in DevOps & Cloud