---
title: "Cron Jobs"
description: "Schedule automated UTC cron commands on PHP and CMS sites, inspect managed app crons, trigger manual runs, and review captured run output."
---

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

# Cron Jobs

Hosted EZ provides a built-in scheduler for **PHP and CMS sites** (WordPress, Laravel, Drupal, Nextcloud, and Custom PHP). Jobs run inside your site's isolated sandbox with configurable timeouts, manual test triggers, and run output logs.

> **PHP and CMS sites only**
>
> Cron jobs are available on WordPress, Laravel, Drupal, Nextcloud, and Custom PHP sites. **Static sites** do not execute server-side code and do not have a Cron tab.

## Managed App Crons (Built-In)

For managed CMS applications, Hosted EZ automatically provisions and runs the standard background scheduler—you do not need to recreate these as custom cron jobs:

| Application | Built-In Job | Schedule (UTC) | Command | Timeout |
| --- | --- | --- | --- | --- |
| **WordPress** | WordPress WP-Cron | `*/5 * * * *` (every 5 min) | `wp cron event run --due-now` | 120s |
| **Nextcloud** | Nextcloud Cron | `*/5 * * * *` (every 5 min) | `php cron.php` | 120s |
| **Drupal** | Drupal Cron | `*/15 * * * *` (every 15 min) | `php vendor/bin/drush.php --root=web core:cron --quiet` | 120s |

Managed app crons are displayed in a dedicated **Built-in jobs** section on your site's **Cron** tab with their next scheduled UTC execution time.

## Create a Custom Cron Job

1. **Open the Cron tab**

   In `app.hostedez.com`, select your PHP or CMS site and click **Cron**.
2. **Enter name and schedule**

   Click **Add cron job**, enter a descriptive name (up to 80 characters), and select a preset or enter a standard 5-field cron expression (`minute hour day-of-month month day-of-week`). All schedules evaluate in **UTC**.
3. **Set the command and timeout**

   Enter a single-line command (up to 1,024 bytes) such as `php artisan schedule:run` or `wp cache flush`, choose a timeout between **5 and 300 seconds** (default **120 seconds**), and save.

### Common schedule presets (UTC)

| Preset | Expression | Description |
| --- | --- | --- |
| Every minute | `* * * * *` | Minimum supported interval (60 seconds) |
| Every 5 minutes | `*/5 * * * *` | Frequent queue or sync workers |
| Every 15 minutes | `*/15 * * * *` | Periodic maintenance |
| Hourly | `0 * * * *` | Top of every hour (UTC) |
| Daily at midnight | `0 0 * * *` | 00:00 UTC every day |
| Weekly (Sunday) | `0 0 * * 0` | 00:00 UTC every Sunday |

### Example Laravel scheduler command

If you run a Laravel site, add a single custom cron job running every minute (`* * * * *`):

```bash
php artisan schedule:run
```

## Trigger Manual Runs & Inspect Run Logs

- **Run now**: Click **Run now** on any custom cron job to execute it immediately without waiting for its next UTC tick. Manual runs are rate-limited to **10 runs per minute** per site.
- **Pause or resume**: Toggle a job's **Enabled** switch to pause scheduled execution without deleting the job.
- **Run history**: Click any job to inspect its execution log. Each run records its trigger (`scheduled` or `manual`), status, exit code, duration in milliseconds, start/finish timestamps, and captured stdout/stderr output.

## Limits & Quotas

| Limit | Value |
| --- | --- |
| Timezone | `UTC` (all schedules) |
| Maximum custom cron jobs per site | `20` |
| Minimum schedule interval | `60` seconds (`* * * * *`) |
| Execution timeout range | `5` – `300` seconds (default `120`s) |
| Maximum job name length | `80` characters |
| Maximum command length | `1,024` bytes (single line) |
| Retained run history per job | Last `20` runs |
| Captured output per run | Up to `16 KiB` (tail retained if truncated) |
| Manual trigger rate limit | `10` runs/minute per site |

Source: https://docs.hostedez.com/operations/cron-jobs/index.mdx
