> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Jobs

> Review the scheduled background jobs in your app's built-in backend, check their run history, and enable or disable them.

Jobs are scheduled background tasks, used when your app needs to perform recurring work such as checking for new information, posting updates, or syncing data. Ask Lovable to set one up. For example:

```text wrap theme={null}
Schedule a daily job at 7 AM that emails me a summary of today's follow-ups.
```

To review your project's jobs, go to **More → Database → Manage → Jobs**.

## Review and control jobs

The Jobs view lists every scheduled job. Click a job to see:

* **Scheduled**: the job's schedule in plain language, for example "Every day at 08:00 AM" or "Every 15 minutes". Times are shown in your timezone, like the run history. A schedule that can't be converted keeps its original time and is marked **(UTC)**.
* **Last run**: when the job last executed.
* A run history table showing each execution's start time, end time, and status (**Succeeded**, **Failed**, or **Running**).

Use **Enable** or **Disable** to control a job. A disabled job does not run again until you enable it.

The view does not update live. Use **Refresh** to reload the job list, or the run history's own **Refresh** to load new executions.

Creating a job, changing its schedule, or deleting one happens by asking Lovable in the project chat or through SQL, not from the Jobs view.

> [!NOTE]
>
> Jobs that run often or take longer to complete can increase credit usage. See [Project usage](https://docs.lovable.dev/features/project-usage.md) to review what your project's jobs consume.

[Project monitoring](https://docs.lovable.dev/features/project-monitoring.md) can alert you when scheduled jobs fail, so you don't have to check the run history manually.

## How a scheduled job calls your app

A job that triggers work in your app sends it an HTTP request, the same kind of request a visitor's browser makes. The address the job calls is public. Without a check, anyone who finds it could send the same request and start the work, such as sending your daily summary email.

In new Lovable apps created from May 13, 2026, which use TanStack Start, the job calls an API route in your app. In older React + Vite apps, the job calls an [edge function](https://docs.lovable.dev/features/edge-functions.md).

When you ask Lovable in the project chat to set up the job, Lovable makes sure your app starts the work only when a request comes from the job:

* The job sends a credential with every request, a secret value that works like a password. Lovable stores the credential as a project [secret](https://docs.lovable.dev/features/secrets.md) named `LOVABLE_CRON_SECRET`, so you do not enter the value or need to see it.
* Lovable adds a check named `authenticateCronRequest` to the code that receives the job's request. The check rejects any request without the right credential before the receiving code does any work.

To check a job you set up earlier, ask Lovable in the project chat, for example:

```text wrap theme={null}
Do my scheduled jobs reject requests that don't come from the job?
```

Lovable adds the scheduled-job credential and the `authenticateCronRequest` check only for projects on the built-in backend. On a project connected to [your own Supabase project](https://docs.lovable.dev/integrations/supabase.md), you set up scheduled work in Supabase.

## FAQ

> [accordion] How do I create or delete a job?
>
> Ask Lovable in the project chat, for example "Schedule a job that cleans up expired sessions every night at midnight" or "Delete the daily summary job". The Jobs view is for reviewing, enabling, and disabling jobs, not creating them.

> [accordion] Why didn't my project pause automatically?
>
> Lovable auto-pauses projects on the built-in backend after a period of inactivity, but scheduled jobs and other background activity keep a project active. If a project only exists to run jobs you no longer need, disable the jobs or [pause the database yourself](https://docs.lovable.dev/features/database-pause-remove.md#pause-a-database-youre-not-using).

> [accordion] Do jobs use credits?
>
> Yes. Each run consumes Cloud usage like any other backend work, so frequent or long-running jobs increase the project's run credit usage. Review the impact in [Project usage](https://docs.lovable.dev/features/project-usage.md). You can also ask Lovable in the project chat *How do my scheduled jobs affect my Cloud usage?* See [Ask Lovable what drives your run credit usage](https://docs.lovable.dev/introduction/credits-and-usage.md#ask-lovable-what-drives-your-run-credit-usage).
