Scheduled backend jobs
Run one of your backend functions on a timer, such as a nightly digest or an hourly sync. How often each plan allows, the limits, and how usage is counted.
On this page
A scheduled backend job runs one of your backend functions on a timer: re-checking saved prices every hour, sending a digest every morning, syncing stock, tidying up expired rows. It runs inside your own backend, with nobody at the keyboard.
It is for your site's own code. For Willo's business work on a schedule (research, writing, outreach), use the Growth Engine or an Agent Program instead.
How a job is set up
- Willo writes the function to do one bounded piece of work per run, such as the next batch of rows, picking up where the last run left off.
- It deploys the function. If you're drafting, you publish first: jobs only ever run against your live backend, never the draft.
- It schedules the job. The approval card shows how often it runs and the backend usage it is expected to use each month. Approving the card is your go-ahead.
Ask in chat: "every morning at 7, email me yesterday's bookings" or "check the supplier's prices every hour and flag changes".
How often
Times are in UTC. Willo converts your local time for you, and tells you the UTC time it set.
Your plan sets the shortest gap between runs:
| Plan | Most often |
|---|---|
| Free, Starter, Builder | Every hour |
| Growth, Scale | Every 30 minutes |
Most recurring work (price checks, digests, syncs, clean-up) is fine hourly or less often.
Limits
| Limit | Value |
|---|---|
| Jobs per business | 10 |
| Time per run | 60 seconds |
A job that needs longer should process work in chunks across several runs. Re-using a job's name replaces it, so "make it every six hours instead" is one change. Stopping a job needs no confirmation.
How a job proves it's yours
A function that requires a signed-in caller gets a backend session on every run, with nothing to set up.
A public function (one anyone could call by its address) gets no credential unless you name one. If it checks a shared secret, the job must send that secret: Willo schedules it with the secret's name (one already saved through the secure form, see Secrets and API keys) and the header the function reads. The value is read on your backend at run time. It never appears in the schedule, in chat or on the approval card. If you save the secret again through the secure form, the job sends the new value; delete it, and the job stops sending it.
Before scheduling, Willo checks that the function's live code reads that secret and the header it rides in, and that the secret is set on your live backend with the value Willo holds. Otherwise it refuses, because every run would be rejected. A job that sends a secret always shows its own approval card, never covered by "Always allow", and an Agent Program can't set one up on its own.
How usage is counted
Each run counts toward your plan's included backend usage; it isn't a separate charge. A daily job uses very little. An hourly job uses a noticeable share of the month, and the approval card shows the estimate before you approve.
On smaller plans, Willo refuses a schedule that would use more than your included allowance, and names the most frequent schedule that fits, typically every six hours or daily. Upgrading your plan, or adding a Backend Boost on a paid plan, makes room for more.
Did it run?
Ask Willo: "did the price check run?" For each job it reports the next run, the last dispatch (when the timer sent the request) and the last response: what the function answered.
- 200 OK means the function accepted the run. Its logs say what it did.
- 401 or 403 means the function refused the call: the job doesn't send the credential it checks. The run still shows as dispatched, so Willo lists these jobs first, under "needs attention", and fixes what the job sends or what the function checks.
- 500, or timed out means the function failed or ran past 60 seconds. Willo reads its logs.
Responses are kept for about 6 hours, so a daily job often shows none. They are matched to jobs by when each job fired. When two jobs fire at the same moment and get different answers, Willo says it can't tell which is which and checks each function's logs instead of guessing.
If your backend is paused because it used its monthly allowance, jobs pause with it and run again once it is resumed.
Related: Run a job on a schedule, Backend functions.