Skip to content
0850 554 5439 [email protected]

Blog

Tutorials, guides, product news and engineering insights from the team that runs your hosting.

Servers

Scheduled jobs on Gyro Containers: cron, time zones and retries

15 November 2026 2 min read
Share this post

A nightly report, a queue cleanup every 15 minutes or a campaign e-mail at a set time no longer needs a scheduler inside your application. Scheduled jobs are here on Gyro Containers.

Scheduled jobs on Gyro Containers: cron, time zones and retries

What is included?

  • Three kinds of timing: a cron expression (0 3 * * *, @daily), every N minutes or once.
  • Time zones: Istanbul by default; UTC or any other zone for users abroad.
  • A service command or an HTTP call: the command runs with the image of your service's running version, its variables and secrets. HTTP headers are kept secret.
  • No overlapping runs: a run never starts while the previous one is going; however many copies your service has, the job runs once.
  • Retries and notifications: a failed run is retried up to 3 times, then you are told by e-mail, SMS, Telegram or webhook. Missed runs are reported too.
  • Everywhere: Jobs > Scheduled in the panel, the API, the gyro command line, Terraform (gyro_container_schedule) and Gyro MCP.

No extra charge on node plans. On Serverless each run is billed per second like a task; the shortest interval is 5 minutes.

From the command line

gyro container schedule create 12345 nightly-report --cron "0 3 * * *" \
  --service api --retries 2 -- npm run report
gyro container schedule create 12345 queue-tick --every 15m \
  --url https://api.example.com/cron --method POST --header "Authorization: Bearer $TOKEN"
gyro container schedule list 12345

With Terraform

resource "gyro_container_schedule" "report" {
  environment_id = 12345
  name           = "nightly-report"
  cron           = "0 3 * * *"
  timezone       = "Europe/Istanbul"
  service        = "api"
  command        = ["npm", "run", "report"]
  retries        = 2
}

Guides

Get started: Gyro Containers.

Comments0

No Comments Yet

Be the first to share your thoughts.

Join the Discussion

Please sign in or sign up to leave a comment.

Never Miss a Post

Get our latest tutorials, guides and product news in your inbox.

You're subscribed to our newsletter.