Cron / every minute

Cron every 30 seconds: why cron can’t, and what to do instead

Standard cron cannot run every 30 seconds: its smallest unit is one minute. The common workaround is two crontab lines, one of them delayed by 30 seconds.

The closest expression

* * * * *

In words: At every minute.

Field by field

FieldValueMeans
Minute (0–59)*every minute
Hour (0–23)*every hour
Day of month (1–31)*every day
Month (1–12)*every month
Day of week (0–6, Sunday = 0)*every day of the week

Next runs

Starting from 2026-11-27 00:00 UTC:

Try other expressions and timezones in the cron expression tool.

The two-line workaround

* * * * * /path/to/job.sh
* * * * * sleep 30 && /path/to/job.sh

Both lines start every minute; the second waits 30 seconds first. It works, but the timing drifts if the job is slow, and runs can overlap.

Better options for sub-minute work

The same schedule on other platforms

Linux crontab. Edit with crontab -e. Runs in the server’s timezone unless you set CRON_TZ (cronie) or TZ.

* * * * * /path/to/job.sh >> /var/log/job.log 2>&1

GitHub Actions. Schedules run in UTC on the default branch. GitHub’s shortest interval is every 5 minutes, so this one won’t run as often as written, and runs can start late when GitHub is busy.

on:
  schedule:
    - cron: '* * * * *'

Kubernetes CronJob. Set timeZone (Kubernetes 1.27+) or the schedule follows the controller’s timezone, usually UTC. concurrencyPolicy: Forbid stops runs from overlapping.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  schedule: "* * * * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: busybox
              command: ["sh", "-c", "echo running"]

AWS EventBridge Scheduler. Six fields (the last is the year); one of day-of-month or day-of-week must be ?. Pick the timezone on the schedule.

cron(* * * * ? *)

Wisp. Wisp’s shortest interval is every 5 minutes. Describe the job and say how often — Wisp writes the function and the schedule.

"Every minute, fetch new orders from Shopify and post a summary to Slack."

Questions

Does any cron support seconds? Some schedulers add a sixth seconds field — Quartz (Java), Spring @Scheduled and node-cron — for example */30 * * * * *. Linux crontab, GitHub Actions and Kubernetes do not.

What is the shortest interval on hosted schedulers? GitHub Actions and Wisp: 5 minutes. Kubernetes CronJob and crontab: 1 minute.

Try any expression in the cron tool · Run it on a schedule with Wisp

Related