Skip to content

6 min read

Automating a Business: Schedule Jobs by Rules, Not by the Clock

Most people schedule an automated job by picking a time. The time is the easy part. Here are eight steps for scheduling jobs from your business rules, using free tools.

By Mario Lucas, founder of Utomat

The mistake I see most when people start automating a business is picking a time first. "Send the reminder at 9 a.m." sounds like a rule, but it is only a clock setting. The real rule sounds more like "remind them three days after the invoice goes unpaid, on a weekday, during their working hours." Get that sentence right and the free tools do the rest.

Here is the order I work in. It is a checklist, so go top to bottom. I write about this kind of thing on my blog, usually after getting it wrong first.

1. Write the rule as a sentence with a condition in it

A schedule answers "when." Business logic answers "when, and only if what." Put both in one sentence before you open any tool.

Take a worked example. Say you want to chase unpaid invoices. Here are two versions of the rule:

  • Version A: every Monday at 9 a.m., email every customer with an open invoice.
  • Version B: every weekday at 9 a.m., email customers whose invoice is more than three days overdue and who have not heard from you in the last seven days.

Version A is simple and annoying. It emails someone whose invoice went overdue at 8:55 that morning. It also emails the same person every single week, like a goldfish with a mailing list. Version B needs one extra field (last emailed), and suddenly the job behaves like a person who pays attention.

2. Decide whether you need a clock or a check

You can run a job two ways. A clock job fires at a set time. A check job fires often, every few minutes, and asks "is there anything to do right now?"

Use a clock for things tied to the calendar, like a weekly report. Use a check for anything where a customer is waiting. Lead follow-up is where I trust this most. The first automation that pays for itself is usually the boring one, a reply within minutes, and a once-a-day clock job cannot do that. A check that runs every five minutes and looks for new leads with no reply can.

Not sure which you need? Ask what happens if the job runs an hour late. If nothing bad happens, use a clock. If someone gets annoyed, use a check.

3. Pick one time zone per job and write it down

The big guides skip this step, and it causes the weirdest bugs. A server usually runs on UTC. Your customers do not. Your n8n instance has its own default time zone, and each schedule can override it. Ignore both and your 9 a.m. job fires at 4 a.m. for you or 6 a.m. for a customer.

The US also changes its clocks twice a year, and not every state plays along. The NIST page on daylight saving time explains the basics. Store time zones as names from the IANA time zone database, such as America/Chicago, not as fixed offsets like UTC-6. Names handle the clock change for you. Offsets do not.

4. Put your business calendar in a table, not in the schedule

Holidays, quiet hours and blackout days are business logic. Do not try to cram them into a cron expression. Make a small table (a Google Sheet works, so does a Supabase table) with columns like date, reason and "skip jobs." Every run starts by looking up today.

There is also a legal reason to take this seriously. If your job calls or texts customers for marketing, the federal rules on telephone solicitation limit calls to between 8 a.m. and 9 p.m. in the recipient's local time. The text is in 47 CFR 64.1200. I am not a lawyer, so check how it applies to you. But this is exactly why step 3 matters. A job that fires on your clock can break a rule that runs on theirs.

5. Make every run safe to repeat

Jobs run twice. A server restarts mid-run, you click "execute" to test it, or a retry kicks in. If your job sends an email every time it runs, someone gets two.

The fix is a flag. Before sending, ask "has this customer already received this message?" After sending, record that it went. A last_emailed_at column does the job. It is also what made Version B in step 1 work.

  • Check the flag first, act second, write the flag third.
  • Write the flag straight after the action, not at the end of a long run.
  • If the action and the flag cannot both succeed, favour the flag. A missed email is easier to explain than a duplicate.

6. Decide what happens after downtime

Nobody writes this rule, and everyone needs it. If the machine is off for two days, what should the job do when it wakes up? You have three honest options:

  • Skip everything it missed. Fine for a weekly report.
  • Run everything it missed, once. Fine for syncing data.
  • Run only what still matters. Right for anything customer-facing.

The third option is where the check from step 2 earns its keep. A check job has no backlog, because it only asks what is true now. A reminder due on Tuesday gets judged by Thursday's rules on Thursday, and the overdue-by-three-days condition handles the catch-up for free. Clock jobs that replay a queue after an outage tend to send the whole pile at once. So decide on purpose.

7. Pick the free tool that matches your tolerance for upkeep

You have three realistic free options.

  • Plain cron on any Linux box. The syntax is old and stable, and the cron overview on Wikipedia covers the five fields. It costs nothing and does exactly one thing.
  • The self-hosted community edition of n8n. Its Schedule Trigger node takes intervals or cron expressions, and you can set the time zone per workflow. The software is free.
  • The free tier of a hosted no-code tool. The easiest start, but the vendor sets the limits on runs and frequency, and those limits change.

I run n8n on a VPS with Docker, alongside Supabase and Next.js. It is cheap and reliable, but the trade-off is real. Somebody has to own updates, backups and secrets. Free software is not free labor. If nobody on your team wants that job, pick the hosted tier and live with the limits. The rest of what I build and run is AI automation, built in public, warts included.

8. Make the job tell you it ran

A broken scheduler does not fail loudly. It just stops, and the silence looks like good news. So give each job a heartbeat. The last step of every run writes a timestamp somewhere you can see it, and a second tiny job checks that the timestamp is recent.

Answer two questions for each job:

  • How late is too late? Pick a number in minutes and alert past it.
  • Who gets the alert? A named person, on a channel they actually read.

If you only do one thing from this list, do this one. A job you cannot see is a job you will hear about from a customer.

Start with one job

Pick the one job a customer is waiting on, write its rule in a single sentence, and walk it through these eight steps. If you want to see how I build and run this stuff in public, have a look around my blog. And if you are stuck on a rule that refuses to fit in a sentence, get in touch. I am happy to look at it with you.

---

*Written by Mario Lucas. Mario runs Utomat, an automation studio that builds AI voice agents and workflow automation for small businesses.*

Related reading: Personal Blog Automation for Small Business Owners: Automate the Plumbing, Not the Voice.

Related reading: Automating Tasks: Sort Them by Who Can See Them Fail.

Related reading: Personal Blog Automation Tools for Founders: Decide Who Fixes It When It Stops.

Related reading: Automating Repetitive Small Business Tasks: Start With the Handoffs, Not the Tasks.