# Scheduled Tasks for Your Website: Cron Jobs Without a Server

> Run jobs on a schedule: call an API, run a site function or a short script every hour, day or week, in your own time zone, with a history of every run.

- Canonical URL: https://uebfaqe.ai/features/scheduled-tasks
- Section: Features one by one
- Language: en
- Publisher: Uebfaqe (https://uebfaqe.ai)

## Summary

A scheduled task does one job at the times you set, whether or not anyone visits the site: a Monday report, a nightly cleanup or an hourly sync with another service.

## Key facts

- Three kinds of action: An HTTP request to any address, one of your site functions with its input, or a short piece of JavaScript that can read your data and send email.
- Any schedule, any time zone: Pick every few minutes, hourly, daily, weekly or monthly, or write a five field cron expression. The form shows the upcoming runs before you save.
- History of every run: Each run is saved with its status, duration, attempts and output. A run can take up to 30 seconds, and a failed scheduled run can be retried up to three times.

Tasks that run on their own, on your schedule

## How it works

1. **Create a task**: In Studio, open Tasks and click New task, or ask the AI to build it for you. Give it a name and choose how often it runs.
2. **Choose the action**: Pick HTTP request, Site function or Inline code, fill in the details and click Test to try it with your unsaved changes.
3. **Watch the runs**: Use Run now for an extra run at any time, pause or resume the task, and follow every result in the Runs tab and in Statistics.

## Frequently asked questions

### What is a cron job and do I need one?

A cron job is a task that runs automatically at set times. You need one when something must happen regularly without anyone clicking, like sending a weekly summary or clearing old entries every night.

### How often can a scheduled task run?

Anything from every few minutes to once a month. The form tells you the shortest interval allowed and warns you when a schedule is too frequent, and Run now starts one extra run whenever you want.

### How do I keep API keys safe in a scheduled task?

Save the key in Variables and reference it by name in the URL, a header or the body. The value is filled in only when the task runs, and inline code reads it from the site variables.

## Related features

- [Functions](https://uebfaqe.ai/features/serverless-functions): Add actions that really run, like sending a form or working out a price, written by the AI.
- [Automatic emails](https://uebfaqe.ai/features/automatic-emails): Functions and scheduled tasks send email on their own, like a note to you for every new order or a confirmation to the customer.
- [Tests and calls](https://uebfaqe.ai/features/function-logs): Test every function before you publish it and see the list of calls with the errors, if there are any.

---

Source: https://uebfaqe.ai/features/scheduled-tasks
