Scheduled tasks overview

Scheduled tasks let Coolify run a command inside an application or service container on a recurring schedule. Use them for work such as framework schedulers, queue maintenance, cache cleanup, and recurring imports.

The short version

Add a task from an application's or service's Scheduled Tasks page. Choose the command, schedule, timeout, and target container. Coolify records the result and output of each run.


What a scheduled task contains

Each task has six main settings:

  • Name identifies the task in Coolify.
  • Command is the exact command Coolify runs inside the container.
  • Run in a shell runs the command with sh -c. Turn it off for a container without a shell.
  • Frequency controls when the command runs. It accepts a five-field cron expression or a supported named schedule.
  • Timeout limits how long one execution may run.
  • Container name selects where the command runs when the resource has more than one container.

Read Cron Syntax for supported fields, named schedules, and examples.


How a task runs

Scheduled tasks, database backups, volume backups, and Docker cleanups each have their own scheduler process that dispatches due work every minute. A busy queue or slow schedule type does not delay dispatch of the others.

Coolify evaluates the schedule in the timezone configured for the server that runs the resource. When the task is due, Coolify runs the command inside the selected running container.

With Run in a shell on, the default, Coolify runs the command with sh -c, so you can use variables, pipes, and redirects. With the option off, Coolify splits the command into arguments and runs it directly. Use this for containers without sh, such as distroless or scratch images. Shell features such as variables, pipes, and redirects do not work then.

A scheduled execution is skipped when the task is disabled, the application or service is not running, or the connected server is not functional. A task with multiple containers also needs the correct container or service name.

If the same task already holds its execution lock when another run is picked up, Coolify drops the overlapping run without retrying it or adding a history row. This also applies to Execute now.

If the resource has no running container when the task starts, Coolify records the run as Skipped. A skipped run sends no notification and does not count as a failure.

A task that keeps failing notifies the team on the first failure, then at most once a day. After 10 failures in a row, when the first failure is more than 24 hours old, Coolify disables the task. Read Manage tasks.

Fixed-time schedules run once when daylight saving time repeats an hour. One failing schedule does not prevent other due schedules from being dispatched.

After Coolify starts a command, Recent executions shows its status, start and end times, duration, and captured output.


Choose the next task

Create a taskConfigure a command, schedule, timeout, and target container.Manage tasksEdit, enable, disable, run, or permanently delete a task.Review execution historyCheck task status, timing, command output, and downloadable logs.

On this page