Cron jobs
Run a command on a schedule inside an app's or a database's container, and see if it worked.
A nightly cleanup, a report at 6am, php artisan schedule:run. A cron job runs a command in the
app's running container, with its variables, as the container's user.
Turn on Cron jobs
Cron jobs are off by default, per app and per database.
Open the tab
A Cron jobs tab appears on the app or the database.
Turning the switch off keeps every job and runs none of them.
Create a job
Fill it in
Prop
Type
Advanced has the shell (sh or bash), the Timeout (minutes) (60 by default),
Attempts, Runs kept and extra Variables for this job only.
Create it, then try it
Click Create, then Run now on the job to check it works before its first scheduled run.
See if it worked
Open a job to see its runs, each with its output.
| Status | What it means |
|---|---|
| Running | Running now. Retrying between attempts |
| Succeeded | It exited with code 0 |
| Failed | It exited with another code |
| Timed out | It hit the timeout. Raise it under Advanced if the command needs longer |
| Skipped | It never started: the container was stopped, or the last run was still going |
| Unknown | Deplo lost track of it. The command may or may not have finished |
| Lost: its server stopped | The server stopped during the run, so it may be half done. Deplo never runs it again: use Run now if that is safe |
Stop this run stops a running command. The alerts Cron job failed and Cron job finished are in Notifications.
Good to know
- A job runs without a login shell. A command that works in the Console may need an absolute path here.
- The job follows the container, so a redeploy does not break it.
- Creating or running a job needs Manage cron jobs.
Something wrong? See Servers and agents.
Did this page help you?

