admin process

A one-off task, such as a database migration, console session or repair script, run as its own process against the same release as the app.

In more detail

Factor XII of the twelve-factor app: admin code ships with application code and runs with the same release, codebase, config and dependency isolation. Common failures are migrations inside application start up, a separate admin repository that drifts from the schema, and tasks run by hand from a laptop against production.

Example

python3 demos.py admin  # the migration runs as its own process

Related terms

Taught in

References