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 processRelated terms
- database migration — A scripted, versioned change to a database's structure, such as adding a table or a constraint.
- build, release, run — Three strictly separate stages: build turns code into a bundle, release joins it to one deploy config with an identifier, and run starts processes from a chosen release.
- twelve-factor app — A short manifesto of twelve rules for building applications that deploy cleanly to modern platforms, written at Heroku and published in 2011.
Taught in
- Admin Processes And The Open Source Update — DevOps & Site Reliability Engineering