# Scheduled jobs

There are a number of pieces of functionality in Outline that rely on scheduled jobs being ran on a regular basis. Cleanup of temporary files, calculating document popularity, sending email reminders, and removing items from the trash being just a few.

## Setup

In order to have these be triggered correctly you should setup a [cron](https://en.wikipedia.org/wiki/Cron) job that calls the utility endpoint with the  token defined in `UTILS_SECRET` environment variable on daily and hourly schedules. The requests should look like:


```
https://docs.mycompany.com/api/cron.daily?token=<UTILS_SECRET>
https://docs.mycompany.com/api/cron.hourly?token=<UTILS_SECRET>
```

---

**Documents**

- [License restrictions](https://docs.getoutline.com/s/hosting/doc/license-restrictions-f9aq6uEL3H)
- [Requirements](https://docs.getoutline.com/s/hosting/doc/requirements-ULdYnwi4wG)
- [Installation methods](https://docs.getoutline.com/s/hosting/doc/installation-methods-pSvgz9j0QC)
- [Configuration](https://docs.getoutline.com/s/hosting/doc/configuration-509J4lAzjo)
- [Business + Enterprise](https://docs.getoutline.com/s/hosting/doc/business-enterprise-rv0715NxO3)
- [Backups](https://docs.getoutline.com/s/hosting/doc/backups-KZtPOADCHG)
- [Troubleshooting](https://docs.getoutline.com/s/hosting/doc/troubleshooting-HXckrzCqDJ)