PremiumComes with the add-on reqad-account. Installing add-ons
Cron jobs
A cron job runs something by itself on a schedule: a site's scheduled tasks, a nightly clean-up, a report every Monday. In the account panel they are under Advanced > Cron jobs.
Add a cron job
Give it a name (optional, such as "Clear old cache files"), then choose what it runs:
| Kind | How it runs |
|---|---|
| A command | With bash, in your home folder. Its output is kept with the run, so it needs no > /dev/null. php here is the server's default PHP. |
| A PHP script | A PHP file of yours, with the PHP version you choose. |
| A web address | Opened like a browser would. An error page (such as 404 or 500) counts as a failed run. |
And when: every minute (or every few minutes), every hour, every day, on weekdays, every week, every month at the time you pick, or Custom with the five cron fields (minute, hour, day of the month, month, day of the week; * is every one, */10 every tenth, 1-5 Monday to Friday). Times are the server's; the page shows its time zone and time.
Runs and output
- Each job runs as your account, with lowered priority, and never overlaps its previous run.
- The list shows each job's last and next run. Runs and output keeps the output of its last 20 runs, so you can see why one failed.
- Run now runs it at once, without waiting for its time. A job can be paused and turned on again.
- A job that fails 3 times in a row shows under Needs attention, and is mailed to you if your Profile asks for Cron jobs messages.
Jobs added outside the panel, for example with crontab -e, are listed too. Save one here once (Edit, Save) to keep a record of its runs. The WordPress scheduler line, which runs a WordPress site's scheduled posts, updates and plugin tasks, is turned on and off in the WordPress Toolkit. Your package may limit how many cron jobs you have; Reqad's own jobs do not count.
Need a hand? Create a free account or contact us.