Scheduled tasks
Web apps or services sometimes need to run tasks periodically, such as commands or URL calls, without any user interaction. To do this, create a scheduled task.
Our platform relies on Debian and its crontab, but it lets you manage scheduled tasks directly in the Advanced > Scheduled tasks tab of the administration interface, which makes them easier to use.
Provide the following information:
- The commands that you want to run, or the URLs that you want to request. You can also enter email addresses, separated by a space, to receive error reports1.

- The SSH environment

- The frequency of your task: you can specify a fixed time or an interval

Use scheduled tasks
- The minimum interval is one minute.
- There is no maximum run time.
- If the previous run of a task isn't finished when the next run is due, then the next run is skipped.
- Tasks start within the set minute. For example, a task scheduled every day at 6:30 starts between 6:30:00 and 6:30:59.
- A log is created automatically in the
/home/[account]/admin/logs/jobs/directory. It records the starts and stops of the task.- The administration interface shows an excerpt of these logs (Logs - 📄).
- The email addresses set to receive error reports don't replace these logs.
- To see the running processes, go to the Advanced > Processes > Scheduled tasks menu.
- For tasks of the Command type, the default language versions are the ones set in the Environment menu of the administration interface. To select another version, use the Environment variables.
Note
If your script needs to allow some IP addresses, then allow these IP address ranges.
Public Cloud users:
- Resource usage must stay reasonable. If the scheduled task is a heavy process, then reduce its frequency.
Private Cloud users:
- The
crontab -ecommand is also available, although we don't recommend it. The two systems are separate.
Troubleshooting
source venv/bin/activate && pythonis specific to Bash and can't work. Replace it withvenv/bin/python.- Shortcuts that start with @, such as @hourly or @reboot, aren't accepted, because their syntax isn't standard.
- Scheduled tasks use the default language versions of the account, set in Environment. To use other versions, set them in the Environment variables field.
Examples
WordPress
Run the WordPress tool every ten minutes to run the WordPress scheduled tasks:
alwaysdata administration interface:
- Value:
php /home/[account]/wordpress/htdocs/wp cron event run --due-now - Frequency: Every 10 minutes (second option)
Equivalent crontab syntax:
*/10 * * * * php /home/[account]/wordpress/htdocs/wp cron event run --due-nowtt-rss
Refresh an RSS backend with tt-rss, every day at 10:30:
alwaysdata administration interface:
- Value:
php /home/[account]/tt-rss/update.php --feeds --quiet - Frequency: Every day at 10:30 (first option)
Equivalent crontab syntax:
30 10 * * * php /home/[account]/tt-rss/update.php --feeds --quiet