# Periodic Job

> Schedule recurring tasks using Kubernetes CronJobs

- **Category**: Cloud
- **Subcategory**: Behavioral
- **Canonical URL**: https://designpattern.fyi/patterns/k8s_periodic_job/

---

## Description
The Periodic Job pattern uses Kubernetes CronJobs to schedule jobs to run at specific times or intervals. CronJobs are ideal for periodic maintenance tasks, backups, reports, or any recurring batch processing. They provide reliable scheduling and integration with the Kubernetes ecosystem while leveraging standard cron syntax.


## Use Cases
Use when you need to run recurring tasks on a schedule or when you need periodic batch processing.





## Trade-offs


### Advantages

- Reliable scheduling mechanism

- Standard cron syntax

- Integrates with Kubernetes ecosystem

- Automatic job management




### Considerations & Drawbacks

- Limited to time-based scheduling

- May overlap if jobs run too long

- Timezone handling complexity







---
**Reference**: [Original Source](https://github.com/k8spatterns/examples/tree/master/behavioral/PeriodicJob)

