FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Cron Expressions Explained: Stop Guessing, Start Scheduling
NewsWeb Development

Cron Expressions Explained: Stop Guessing, Start Scheduling

via Dev.to TutorialMichael Lip3h ago

I once wrote a cron expression that was supposed to run a database backup every Sunday at 3 AM. What it actually did was run every minute of every hour on every Sunday. The backup script ran 1,440 times every Sunday for three weeks before someone noticed the disk was filling up with redundant backup files. The expression was * * * * 0 when it should have been 0 3 * * 0 . One wrong field, and a weekly task becomes a one-per-minute task. Cron syntax is one of those things that most developers use regularly but few have actually memorized. We look it up, copy an expression from Stack Overflow, tweak it, and hope it's right. That approach works until it doesn't, and when cron goes wrong, it tends to go wrong quietly. The five fields A standard cron expression has five fields, left to right: minute hour day-of-month month day-of-week 0 3 * * 0 Each field accepts: A specific value: 5 means the fifth minute, or the fifth month (May) A wildcard: * means every possible value A range: 1-5 means

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

Iran War Puts Global Energy Markets on the Brink of a Worst-Case Scenario
News

Iran War Puts Global Energy Markets on the Brink of a Worst-Case Scenario

Wired • 5m ago

The data from 400,000 developers exposes the grind myth — and shows what actually separates good…
News

The data from 400,000 developers exposes the grind myth — and shows what actually separates good…

Medium Programming • 31m ago

News

Why your next mobile app is probably headless

Lobsters • 39m ago

Major SteamOS update adds support for Steam Machine, even more third-party hardware
News

Major SteamOS update adds support for Steam Machine, even more third-party hardware

Ars Technica • 49m ago

News

Is Composer 2 in Cursor Any Good?

Medium Programming • 49m ago

Discover More Articles