What is Cron Job?
Turkish: Cron Job
A cron job is a scheduled Unix/Linux task that runs backups, reports, synchronization, or maintenance at fixed times or intervals.
What is a Cron Job?
A cron job is a command or script that runs automatically at scheduled times. It can create daily database backups, generate nightly reports, synchronize inventory every hour, or clean up expired sessions.
How Do Cron Expressions Work?
The classic cron format has five fields: minute, hour, day of month, month, and day of week. For example, 0 3 * * * runs every day at 03:00. */15 * * * * means the task runs every 15 minutes.
What to Watch
- The task should be idempotent; running twice should not corrupt data.
- Logs, error notifications, and failure alerts should be configured.
- Long-running jobs should not overlap with the next scheduled run.
- Time zones and daylight saving changes matter for financial reports.
- Distributed systems need locking for jobs that must run only once.
Difference from Event-Driven Work
Cron runs by time; event-driven systems run when something happens. “Check all orders every night” is cron-style work. “Create an invoice when payment succeeds” is event-driven. Many systems use both patterns.
Business Use
Cron jobs are practical for scheduled maintenance and data flows in automation projects. For critical work, a crontab entry alone is not enough; monitoring, retries, least-privilege access, and a manual rerun procedure should also be designed.
Related Terms
Batch processing runs data in scheduled groups rather than instantly, producing reports, transfers, or transformations.
Event-Driven ArchitectureEvent-driven architecture lets systems react through independent components when events such as orders, payments, or stock changes occur.
AutomationAutomation is the use of software or technology to perform repetitive business processes automatically, without human intervention.
TriggerA trigger starts a database action, integration step, or automation workflow when a specific event or condition occurs.