FerryDocs
Concepts

Jobs & cron

A job runs one command in a new container, then stops. You start it, or a schedule starts it.

Edit on GitHub
ferry runone-off jobSchedulecron jobNew containerone commandLogof this run

A run starts in two ways: you start it, or a schedule starts it.

1 / 4

A is one that runs one command, then stops. A run ends with one of three statuses: succeeded ( 0), failed or canceled.

The two kinds

KindWhat starts a runExample
You, with ferry run, on a deployed serviceA database migration
Its . A cron job is a type of service.A command each day at 03:00 UTC

Run a job

Terminal
ferry run api --follow -- npm run migrate

In this section

On this page