Scheduled jobs and background tasks

Running work outside a request: background tasks, timers, and scheduled jobs — their limits, where to see them, and when they run.

A Floot backend has no always-on process. Work that should not hold up a request, or should happen later, or should repeat on a schedule, runs as a job instead. There are three kinds, and your assistant picks the right one when you describe what you want.

KindWhat it doesExamplePlan
Background taskRuns now, outside the request that started it. One task can start many more.Process an upload; build a report for each of 500 customersEvery plan
TimerRuns once, at a time between 1 minute and 7 days from now.Send a reminder an hour before a booking; expire an invite after 24 hoursPaid
Scheduled jobRuns on a repeating schedule, in the time zone you choose.Email a digest every morning at 8Paid

"Paid" means the project owner is on a paid plan. A collaborator's own plan does not count.

Setting one up

Ask your assistant. There is no create button; jobs are part of your app's code.

Every weekday at 9am New York time, email me a summary of yesterday's orders.
When a booking is made, send the customer a reminder one hour before it starts.

Where to see them

Open your project on floot.com and go to Services → Schedules. Each scheduled job is listed with its schedule, an on/off switch, Run now, and Delete task. Run now runs the job once, straight away, with the project's current code — the way to test a job without waiting for its time. It works on your real data: the preview and the published app share one database.

Timers and repeating tasks that your app created while running are listed below them, under Background tasks, where you can cancel any of them.

When scheduled jobs run

  • In the published app. A job you have just added does nothing until you publish.
  • While the project owner is on a paid plan. On a free plan the job is saved and listed, but it does not run.
  • With the code and schedule of your last publish. Editing a job, changing its time, or switching it off in the panel changes nothing in the published app until you publish again. To stop a job that is running in the published app, switch it off and then publish.
  • One run at a time. If a job's previous run is still going, including the tasks that run started, the next one is skipped rather than stacked on top.
  • Not while hosting is paused. If your hosting balance goes negative, scheduled jobs and repeating tasks in your published apps pause until it is paid — see Hosting. A timer that is still waiting when your app is taken offline or reaches its daily spend limit is held, and runs when the app comes back, a minute later if its time passed in between. One due within about 30 seconds of the pause is not held.

Timers follow the app they were set in. One set by your published app fires in the published app. One set while you test in the preview fires in the preview only if the preview was open in the 15 minutes before it is due. When you publish, timers and repeating tasks the preview set that are still waiting move to the published app and stop firing in the preview.

Limits

LimitValue
Scheduled jobs per project50
Shortest scheduleEvery 5 minutes
Timers waiting at once25 per project, each 1 minute to 7 days out
Repeating tasks your app creates while running10 per project, every 5 minutes at most
Longest single run15 minutes
Data passed to a task100 KB

A run that reaches 15 minutes is stopped. It is started again only if it had done no work yet, or if it asked for retries (see below). For longer work, ask your assistant to split it into steps: each step saves its place in the database and queues the next one.

When a task fails

A background task, timer or repeating task has nobody waiting on it, so a failure is silent unless your app is told. Floot can do two things about it. Neither is on by default; ask your assistant for them when you describe the job.

  • Tell your app. The task names another task that Floot runs when it fails for good, after its last retry. Use it to mark the work as failed, email you, or start the work again. For a repeating task, each failed run is reported and the schedule keeps going. It is also called when a run was stopped outright (out of memory, a crash, or still busy at the 15-minute limit) or never started because it waited more than an hour. Rarely it is called twice for the same run, so make it safe to run twice too.
  • Run it again. A task that throws an error or reaches its time limit runs again, up to 3 more times, about 2, 4 and 8 seconds apart. Ask for this only for work that is safe to run twice: a retry runs the whole task again, even when the failed attempt had already written to the database, charged a card or sent an email.
Retry the invoice sync up to 3 times. If it still fails, email me.
When a reminder timer fails, mark the booking and set it again.
  • Without retries, a task that fails or is cut off is not run again. The exception is a run that failed before doing any work, because the database connection failed or it reached its time limit before its first query: Floot runs that again by itself. Either way, a task runs at most 4 times in all.
  • A run stopped outright, for example because it ran out of memory, is never run again, even with retries. Floot still tells your app about it, as above.
  • Scheduled jobs listed at the top of Services → Schedules have neither option. To hear about a failed run, ask your assistant to have the job hand its work to a background task that has them, or record its own errors.
  • Apps last published before November 20, 2026 get all of this the next time you publish them.

Have a task write its progress and its result to your database, and make it safe to run twice, so that a retry does no harm. Your assistant knows these patterns — tell it the work must not be lost.

What they cost

Jobs are metered as ordinary hosting usage: the time your backend runs. The less obvious cost is the database. Every run that reads the database wakes it, and it then stays awake for a while, so a job that checks every few minutes whether there is anything to do keeps the database running much of the day, even when the answer is always no. The Schedules panel shows an estimate next to any job that runs that often.

The fix is usually a timer instead of a frequent job: when the deadline is created, set a timer for the moment the work is due, and nothing runs in between. Ask your assistant to make that change.