Schedules and Job files
A Schedule says when a Job is due: a cron expression, a fixed interval, or a single date and time. Each moment it names is a Slot, and every Run stands for a Slot.
Three kinds of Schedule
A Job has exactly one Schedule. In a Job file, set one of these keys:
| Key | Use it for | Example |
|---|---|---|
cron | Clock times: every hour, weekdays at 9:00 | "0 9 * * MON-FRI" |
every | A fixed gap, whatever the clock says | "15m" |
at | Once, at one date and time | 2026-12-01T09:00:00 |
cron
Five fields, separated by spaces:
┌ minute 0–59
│ ┌ hour 0–23
│ │ ┌ day 1–31
│ │ │ ┌ month 1–12 or JAN–DEC
│ │ │ │ ┌ weekday 0–6 or SUN–SAT
* * * * *
Each field takes:
*for every value;- a number, such as
30; - a range, such as
9-17orMON-FRI; - a step, such as
*/15(every 15th value) or5/10(5, 15, 25…); - a list of any of these, such as
0,30or1-5,10.
Month and weekday names are case-insensitive. In the weekday field, 7 is Sunday as well as 0. As in classic cron, when both the day and the weekday fields are restricted, a day matches if either one does: 0 9 1 * MON runs on the 1st of the month and on every Monday.
| Expression | Slots |
|---|---|
*/15 * * * * | Every 15 minutes, on :00, :15, :30, :45 |
0 * * * * | Every hour, on the hour |
30 8 * * MON-FRI | 8:30 on weekdays |
0 3 * * SUN | 3:00 every Sunday |
0 0 1 */3 * | Midnight on Jan 1, Apr 1, Jul 1, Oct 1 |
Macros stand for common expressions:
| Macro | Same as |
|---|---|
@hourly | 0 * * * * |
@daily, @midnight | 0 0 * * * |
@weekly | 0 0 * * 0 |
@monthly | 0 0 1 * * |
@yearly, @annually | 0 0 1 1 * |
@reboot isn't supported. A Schedule that can't be read is shown with the reason, such as “minute field: 61 is out of range 0–59”.
every
An interval Schedule runs every fixed amount of time. Write it as a duration, such as "15m", "1h30m" or "2d", or as a number of seconds. The shortest interval is 60 seconds.
Slots fall at anchor + k × interval. They're fixed instants, so they don't depend on when the last Run happened, and a late Run doesn't shift the next one. In a Job file the anchor defaults to 2000-01-01 00:00:00 in the Job's time zone; set anchor to align the Slots somewhere else:
every = "6h"
anchor = 2026-01-01T02:00:00
# Slots every 6 hours from 2:00 on 1 Jan 2026
Because interval Slots are fixed instants, they don't follow daylight saving time. For “every day at 9:00”, use cron.
at: One-time Jobs
A One-time Job has a single Slot. Use it for reminders and one-off tasks instead of a cron line you'd have to delete later. In the app, press ⌘⇧N or pick One time in the Schedule section.
name = "Call the bank"
at = 2026-12-01T09:00:00
command = '''
osascript -e 'display notification "Call the bank" with title "Reminder"'
'''
Write at as a TOML date-time. With an offset (2026-12-01T09:00:00-06:00) it's that exact instant; without one, it's read in the Job's time zone.
After its Slot, a One-time Job has no next Slot. It stays listed as Done, Missed or Failed, with its Run, until you delete it. A failed Run isn't retried. If the Mac was asleep at that time, the Run happens on wake (Catch-up Policy Once); set catch_up = "skip" to drop it instead.
Time zones
Schedules use your Mac's time zone, and follow it if you travel. To pin a Job to one zone, set timezone to an IANA name such as "Europe/Berlin". The Run Context timestamps use the same zone's offset.
Around daylight saving changes, cron Schedules follow two rules:
- A time that doesn't exist (the spring-forward gap) runs once, at the first moment after the gap: 2:30 becomes 3:00.
- A time that happens twice (fall back) runs once, the first time.
Slots
A Slot is a point in time a Schedule says the Job is due. Slots are worked out from the Schedule alone, so a Run stands for its Slot, not for the moment it happened to start. A Run for the 9:00 Slot that starts at 9:00:02, or at 7:12 the next morning after the Mac slept, still stands for 9:00.
A Job runs one Run at a time. A Slot that passes while the Mac is asleep or off, while Crontastic isn't running, or while the Job is still busy with an earlier Run, is a Missed Slot. What happens to Missed Slots is up to the Job's Catch-up Policy: see Catch-up and the Window.
Paused Jobs
Pause a Job to stop it on purpose: from its page, with Pause All in the menu bar, or by an agent over MCP. Slots that pass while a Job is Paused aren't Missed Slots, so nothing is caught up for them. When you resume it, its Window starts fresh from now.
Paused is kept per Mac in Crontastic's own database, not in the Job file. Paused Jobs don't count towards the free version's 5 Jobs.
Timeouts
Without a timeout a Run can take as long as it needs. A command that hangs keeps the Job busy, and its next Slots become Missed Slots. Crontastic shows a Run that has been going for more than 2 hours as running long, and notifies you.
Set timeout (for example "30m") and a Run that reaches it is stopped: its process group gets SIGTERM, then SIGKILL 10 seconds later. Its Outcome is Timed out, and the Window stays where it was, so the next Run covers that time again.
A timeout counts wall-clock time, sleep included. If the Mac sleeps during a Run and the Run doesn't succeed, its Outcome is Interrupted rather than Failed or Timed out: the Script was frozen, not broken, so no failure notification is sent.
Groups
A Group is a named section in the sidebar for organizing many Jobs. A Job is in at most one Group; without one it's Ungrouped. In the app, click New Group at the bottom of the sidebar and drag Jobs onto it. In a Job file, set group = "Data".
Each Group can have its own env file, applied to all of its Jobs: see Environment and PATH.
Job file keys
Job files live in ~/.config/crontastic/jobs/, one Job per .toml file. Unknown keys are errors, so a typo such as cronn turns the file into a Broken Job instead of being ignored.
| Key | Meaning | Default |
|---|---|---|
name | Display name. Required. | None |
command | Shell command, one or more lines. Required. | None |
cron, every, at | The Schedule. Exactly one is required. | None |
anchor | Date-time the Slots of an every Schedule align to. | 2000-01-01 00:00 in the Job's time zone |
timezone | IANA time zone for the Schedule. | The Mac's |
group | Group to file the Job under. | Ungrouped |
working_directory | Folder the command runs in; ~ works. | Your home folder |
env_file | File of KEY=VALUE lines for this Job. | None |
timeout | Stop the Run after this long. | No limit |
catch_up | "once", "replay_each" or "skip". | "once" |
replay_cap | Most Runs Replay each starts at once; past it, one Run covers the whole Window. | 48 |
advance_on_success_only | Only a Succeeded Run moves the Window. Set false to let Failed and Timed out Runs move it too. | true |
stop_on_error | Run the command after set -e: the first failing line fails the Run. | false in a file; on for Jobs made in the app or over MCP |
notify_on_failure | Notify when a Run fails. | true |
notify_on_success | Notify when a Run succeeds. | false |
[env] | Table of extra environment variables, as strings. | None |
id | Stable identity. Added by Crontastic; leave it alone. | Generated |
Durations (every, timeout) are a string of days, hours, minutes and seconds in that order, such as "2d", "1h30m" or "45s", or a whole number of seconds.
stop_on_error has no effect if your login shell is fish, csh or tcsh. Keep secrets out of [env]: the Job file is easy to sync or commit, so put them in an env_file instead.
A complete example:
name = "Pull metrics"
group = "Data"
cron = "0 * * * *"
timezone = "America/Chicago"
working_directory = "~/code/metrics"
env_file = "~/.secrets/metrics.env"
timeout = "30m"
catch_up = "once"
stop_on_error = true
command = '''
./pull.sh --from {{window_start}} \
--to {{window_end}}
'''
[env]
API_BASE = "https://api.example.com"
When Crontastic writes a file, from the app or over MCP, it keeps your full-line comments above the keys they describe. Comments at the end of a value line aren't kept, and keys are always written in the same order.