There's a line in GitHub's documentation that I think about more than I should. In a public repository, scheduled workflows are disabled automatically after 60 days with no repository activity. Nobody decides the job should stop. It stops anyway.

That line holds the whole problem with recurring jobs. I watch a one-off task. A job on a schedule runs without me, so nobody is watching any single run. Before I give an agent a recurring job, I answer five questions: what triggers it, what one run costs, who sees it when it fails, how it stops, and how I undo what it did. If any answer is "I'd find out later", the job isn't ready.

Before

A one-off task

  • I start it, so I know why it ran
  • I see the result while it's fresh
  • If it goes wrong, I'm already there

After

A recurring job

  • A clock or an event starts it, not me
  • Results pile up between the times I look
  • If it goes wrong, it can go wrong again on the next run

1. What exactly triggers it?

"Every morning" isn't an answer. Schedulers have opinions, and you inherit them. GitHub Actions runs scheduled workflows at most once every 5 minutes, only on the default branch, and a run can be delayed when GitHub is under heavy load. A schedule tells you roughly when, not exactly when.

Overlap is the part that catches people. A Kubernetes CronJob allows overlapping runs by default. If yesterday's run is still going when today's is due, you get two. Set the policy to Forbid and the new run is skipped. Set it to Replace and the new one takes over from the old one. And the policy only covers runs from the same CronJob: two different CronJobs touching the same data can always run at once.

So I write the trigger down as a sentence: what starts it, on which branch or cluster, and what happens if the last run hasn't finished.

2. What does one run cost?

I don't guess this one. I run the job once, by hand, and measure it: the model calls, the tokens, the API requests, the minutes. Then I multiply by the schedule. A number that looks like nothing once can look very different a few hundred runs later.

Then I put a ceiling on it. OWASP's guidance on agents recommends rate limits to cap how many unwanted actions can happen in a given period. I treat cost the same way: a cap on runs and calls, so a loop costs me a bounded amount instead of an open one.

3. Who sees it when it fails?

Most failures I worry about are quiet. A Kubernetes run that misses its start by more than startingDeadlineSeconds is skipped, and later runs carry on as if nothing happened. The GitHub job from the opening just stops. Neither looks like an error unless something is looking.

OWASP recommends logging and monitoring what an agent's tools and the systems behind them actually do, and it frames that as limiting damage, not preventing it. That framing is right. The question isn't "will it fail". It's "who finds out, how fast, and where". The answer needs a name and a channel, not "I'll check the logs".

4. How does it stop?

I want two answers here: how I stop the schedule, and how I stop a run that's already going. They aren't the same thing.

The reverse matters too. A job can stop without anyone choosing it, like the 60-day rule. If something depends on that job, I want to know it went quiet.

5. How do I undo what it did?

This is where agents differ from ordinary cron jobs. OWASP lists Excessive Agency as a risk for LLM systems, with three root causes: too much functionality, too many permissions, too much autonomy. A recurring job has all three on a timer.

So I shrink what there is to undo. Permissions to the minimum the job needs. A human approves any high-impact action before it happens, which is why my agents propose and I accept. And every write is safe to repeat. Stripe's idempotency keys are the model I use: retry a request after a connection error and you don't get a second object or a double update. Even the details teach something. Stripe saves the first result for a key, a 500 error included, and keys can be pruned once they're 24 hours old, after which the same key makes a new request. Retrying safely has a time window. Your job's retries should too.

The ten-minute version

  1. 1TriggerOne sentence: what starts it, where, and what happens if the last run is still going.
  2. 2CostOne measured run, multiplied by the schedule, with a cap on runs and calls.
  3. 3FailureA name and a channel for who sees a failed, skipped or silent run.
  4. 4StopThe command that pauses the schedule and the one that kills a running job.
  5. 5UndoMinimum permissions, approval for big actions, writes that are safe to repeat.

Write the five answers down before the first scheduled run. The one you can't answer is the one that'll teach you, at the worst time.

If the answer is "I'd find out later", the job isn't ready.

The rule I run every scheduled agent through

Free scorecardIs it ready for an AI agent?Before you automate a workflow, score it: 20 yes-or-no questions on the work, the data, the guardrails, the proof and the money. Tick what's true; the score tells you to pilot it, fix it first, or leave it.Score your workflow Building with AI?Let's talk about your appBook a free intro call