Every 30 Seconds: Quartz expression
*/30 * * * * ?“Every 30 seconds.”
| Field | Value | Meaning |
|---|---|---|
| Second | */30 | every 30 seconds |
| Minute | * | every minute |
| Hour | * | every hour |
| Day of month | * | every day |
| Month | * | every month |
| Day of week | ? | any (?) |
Every 30 Seconds in every cron format
| Scheduler | Expression |
|---|---|
| Unix / Linux cron crontab, cronie, Vixie cron, Kubernetes CronJob, GitHub Actions | Not supported — Unix / Linux cron has no seconds field, and this schedule runs at second 0, 30. |
| Quartz Quartz Scheduler (Java) | */30 * * * * ? |
| Spring @Scheduled Spring Framework CronExpression and @Scheduled | */30 * * * * * |
| AWS EventBridge EventBridge rules and Scheduler cron() | Not supported — AWS EventBridge has no seconds field, and this schedule runs at second 0, 30. |
Next run times (UTC)
- Fri, Dec 4, 2026
20:42:30 - Fri, Dec 4, 2026
20:43:00 - Fri, Dec 4, 2026
20:43:30 - Fri, Dec 4, 2026
20:44:00 - Fri, Dec 4, 2026
20:44:30
Calculated when this page was generated. Use the tester above for live times in your own time zone.
Tip
Standard Unix cron cannot run more often than once a minute. On Linux, add a second crontab line that runs `sleep 30; command`, or use a systemd timer with OnCalendar=*:*:00/30.
Copy-ready examples
// Every 30 seconds
@Scheduled(cron = "*/30 * * * * *", zone = "UTC")
public void runJob() {
// ...
}
// Or externalise it in application.yml:
// app.jobs.my-job.cron: "*/30 * * * * *"
// @Scheduled(cron = "${app.jobs.my-job.cron}", zone = "UTC")Common questions
What is the cron expression for every 30 seconds?
Every 30 seconds. Standard Unix cron cannot express this schedule (Unix / Linux cron has no seconds field, and this schedule runs at second 0, 30), so use the Quartz expression */30 * * * * ?, the Spring expression */30 * * * * *.
How do I run a Spring @Scheduled job every 30 seconds?
Use @Scheduled(cron = "*/30 * * * * *"). Spring cron has six fields, starting with seconds. Add zone = "Europe/London" (or any IANA zone) to run it in a specific time zone instead of the server's.
What is the Quartz cron expression for every 30 seconds?
*/30 * * * * ?. Quartz adds a seconds field at the start and requires ? in either the day-of-month or day-of-week field.
How do I write every 30 seconds for AWS EventBridge?
EventBridge cannot express this exact schedule: AWS EventBridge has no seconds field, and this schedule runs at second 0, 30.
Which time zone does this cron schedule use?
Cron runs in the time zone of the scheduler: the server's local zone for crontab, UTC for GitHub Actions and EventBridge rules, or the zone you set with CRON_TZ, Kubernetes timeZone, Spring zone or Quartz inTimeZone. Choose a zone in the tester above to see local run times.
More cron schedules
Similar: Every 10 Seconds (*/10 * * * * *) · Every Minute (* * * * *) · Every 5 Minutes (*/5 * * * *)