Skip to content
Quartz100% Client-Side

Cron Expression for Every 30 Seconds (Quartz)

*/30 * * * * ?Every 30 seconds

The Quartz cron expression "*/30 * * * * ?" runs a task every 30 seconds (quartz). Preview the next run times in your timezone, read the plain-English translation, and copy ready-to-paste snippets for crontab, Node.js, GitHub Actions, and AWS EventBridge.

Live playground

  • Sec*/30
  • Min*
  • Hour*
  • DOM*
  • Month*
  • DOW?

Every 30 seconds

Quartz · evaluated in UTC

24-hour view

Hover a highlighted hour for precise timestamps. Showing the next 50 executions.

Upcoming runs

Timezone

Runs are simulated in the selected IANA timezone. Auto-detected from your browser on first load.

Field breakdown

How each field of */30 * * * * ? is interpreted in the Quartz format.

Field breakdown of */30 * * * * ?
FieldValueAllowedStatus
Seconds*/300-59Valid
Minute*0-59Valid
Hour*0-23Valid
Day of Month*1-31, L (last day), W (nearest weekday)Valid
Month*1-12 or JAN-DECValid
Day of Week?1-7 or SUN-SAT (1 = SUN)Valid

Use “*/30 * * * * ?” in real code

Copy-paste configurations for the most common schedulers, converted to each platform’s dialect where needed.

import cron from 'node-cron';

cron.schedule('*/30 * * * * ?', () => {
  console.log('Running task...');
});

Running “*/30 * * * * ?” in production

The seconds field: what six-field Quartz adds to cron

*/30 * * * * ? fires twice a minute — at :00 and :30 of every minute's seconds — 120 times an hour, 2,880 times a day, and the schedule's existence is the point: five-field cron cannot express sub-minute intervals, and the seconds field Quartz prepends is the dialect's headline feature. The full Quartz grammar is seconds, minutes, hours, day-of-month, month, day-of-week, with an optional seventh year field; the ? rides in exactly one of the two day fields as in EventBridge, and the step form */30 anchors at zero here exactly as it does in every other field. Reads naturally left to right: 'every 30 seconds of every minute of every hour...'

Legitimate tenants at 30-second cadence are narrower than the schedule's availability suggests: in-process cache or session refreshes where staleness is measured in seconds; payment-status pollers as the fallback leg under a webhook (check twice a minute, with the webhook as primary and this as the reconciliation); instrument and IoT telemetry aggregation; and game or trading loops that Quartz's in-process scheduler serves well. Against external APIs, 2,880 calls a day is a rate-limit line item to negotiate before deploying, and against any webhook-capable system the honest review question is 'why polling at all?' — 30-second polling is usually the transitional state before the webhook lands, not the destination.

Quartz's execution model: in-process, misfire policies, and the cluster question

Quartz schedules inside your JVM (or .NET port) — a scheduler instance holding triggers and firing jobs on a configured thread pool — so a 30-second trigger's reliability inherits the process's: redeploy the app mid-interval and the fire is governed by the trigger's misfire policy (fire-now, skip, or fire-all-missed per MisfireInstruction), not by any external guarantee. Thread-pool exhaustion is the cadence-specific hazard: 2,880 daily executions of a job that occasionally blocks can starve the pool and cascade into missed fires across every job the scheduler owns — cap job durations, size the pool for the worst resident, and monitor queue depth, not just fire counts.

Clustering is Quartz's answer to the fleet question: scheduler instances sharing a database (JobStore with clustering enabled) elect leadership per-fire, so a 30-second trigger in a five-node cluster fires once, not five times — the distributed-lock problem solved at the framework layer, at the cost of a shared store and its latency on every fire. Outside the JVM, the Unix world's nearest equivalents are systemd timers (OnUnitActiveSec=30s, with the caveat that systemd coalesces within AccuracySec) or a supervisor loop with sleep 30 — both schedulers for the same need. The five-field simulator above cannot show second-level fires (its floor is one minute); the human-readable line and field table still confirm the grammar your Quartz instance will run.

Frequently asked questions

What does the cron expression "*/30 * * * * ?" mean?

"*/30 * * * * ?" is a Quartz expression that means: Every 30 seconds. It contains 6 fields — Seconds (*/30), Minute (*), Hour (*), Day of Month (*), Month (*), Day of Week (?) — and works in any scheduler that accepts the Quartz format.

How does "*/30 * * * * ?" behave in UTC versus local time?

Quartz evaluates the trigger in the timezone configured on the scheduler or on the individual trigger's timeZone property, defaulting to the JVM's default timezone. Spring's @Scheduled uses the server default unless you set the zone attribute per task.

Is "*/30 * * * * ?" valid outside Quartz?

Not directly. Standard Unix cron expects 5 fields without '?', Quartz expects a leading seconds field, AWS EventBridge appends a year and requires '?' in one of the two day fields, and Salesforce System.schedule needs a leading seconds field with 1-based weekdays and an optional trailing year. The conversion snippets below show the equivalent expression for each platform.

How does */30 in the seconds field differ from */30 in the minute field?

Position — Quartz's first field is seconds, so */30 there means :00 and :30 of every minute (120 fires an hour), while */30 in the second field (minutes) means the classic twice-hourly :00/:30 (two fires an hour). The 60x difference between misplacing one field is the standard Quartz porting bug; the field table above labels each position, and the leading-seconds layout is why every Quartz expression in this directory starts with a 0, an */N, or a *.

Can standard Unix cron run a job every 30 seconds?

No — five-field cron's finest granularity is one minute; there is no seconds field. The nearest equivalents: two cron lines twelve seconds apart cannot do it either (minutes are the floor), so the real options are systemd timers (OnUnitActiveSec=30s on a .timer unit), Quartz/Spring-style in-process schedulers, or a supervised loop (while true; do work; sleep 30; done) under a process manager. Cron-based approximations — like firing two jobs at :00 and :30 — halve the gap but remain minute-locked at one minute minimum.

About the “*/30 * * * * ?” schedule

*/30 * * * * ? is the Quartz way to say “Every 30 seconds”. The simulator above evaluates it entirely in your browser — the timeline, the next-run table, and the timezone switcher all run client-side, so you can paste production schedules without them ever leaving your machine.

Every page in this directory follows the same structure: a plain-English translation, a per-field breakdown, platform-specific snippets, and a timezone-aware simulator. Move between the related intervals below to compare dialects, and validate one final time in the simulator with your own timezone before shipping.

Adjacent intervals and the same schedules expressed for other platforms.