Cron Expression: staging refresh

Detailed explanation and examples for this cron schedule pattern

Cron Format Examples

Standard UNIX (5 fields)

*/10 * * * *
minute hour day-of-month month day-of-week

Quartz (6 fields)

0 */10 * * * ?
second minute hour day-of-month month day-of-week

Quartz with Year (7 fields)

0 */10 * * * ? *
second minute hour day-of-month month day-of-week year

Cron Expression with Names

*/10 * * * *
Using month and day-of-week names where applicable

System Examples

Common Systems

Linux Crontab

*/10 * * * * /path/to/command

GitHub Actions

cron: '*/10 * * * *'

Cloud Providers

AWS CloudWatch

cron(\*/10 \* \* \* \*)

Google Cloud Scheduler

*/10 * * * *

Azure Functions

"schedule": "*/10 * * * *"

DigitalOcean App Platform

cron: '*/10 * * * *'

Container Orchestration

Kubernetes CronJob

schedule: "*/10 * * * *"

Docker Swarm

placement: { constraints: [node.role == manager] }
labels: { cron: "*/10 * * * *" }

Programming Languages

Quartz (Java)

CronScheduleBuilder.cronSchedule("*/10 * * * *")

Node.js (node-cron)

cron.schedule('*/10 * * * *', function() { // Your code here });

Python (python-crontab)

from crontab import CronTab cron = CronTab(user='username') job = cron.new(command='/path/to/command') job.setall('*/10 * * * *')

PHP (Symfony)

# config/packages/messenger.yaml framework: messenger: transports: cron: '%env(MESSENGER_TRANSPORT_DSN)%' options: cron_expression: '*/10 * * * *'

Expression Breakdown

Standard Unix Format (5 fields)

This cron expression is composed of 5 time/date fields:

FieldValueDescription
Minute*/10Every 10 minutes (0-59)
Hour*Every hour (0-23)
Day of Month*Every day of the month (1-31)
Month*Every month (1-12)
Day of Week*Every day of the week (0-6, where 0 is Sunday)

Quartz Format (6 fields)

In Quartz, we add a seconds field (and can replace * with ? in day-of-week):

FieldValueDescription
Second00
Minute*/10Every 10 minutes (0-59)
Hour*Every hour (0-23)
Day of Month*Every day of the month (1-31)
Month*Every month (1-12)
Day of Week?Any value (no specific value)

AWS CloudWatch Format (6/7 fields)

AWS CloudWatch Events adds an optional year field:

FieldValueDescription
Minute*/10Every 10 minutes (0-59)
Hour*Every hour (0-23)
Day of Month*Every day of the month (1-31)
Month*Every month (1-12)
Day of Week*Every day of the week (0-6, where 0 is Sunday)
Year (Optional)*Every year

Format Differences

Note that different systems interpret cron expressions slightly differently. The standard Unix format has 5 fields, while Quartz and AWS formats have additional fields. Some special characters like ?, L, W, and # are only supported in specific implementations.

Execution Frequency

This job runs every 10 minutes