Merge pull request #306 from chr15m/issue-305-document-release-worker

Document release worker in design doc.
pull/313/head
Rui Carmo 2023-05-12 08:42:56 +01:00 zatwierdzone przez GitHub
commit fe186f9f86
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -21,6 +21,7 @@ An app is simply a `git` repository with some additional files on the top level,
* `wsgi` workers, in the format `dotted.module:entry_point` (Python-only)
* `web` workers, which can be anything that honors the `PORT` environment variable
* `static` workers, which simply mount the first argument as the root static path
* `release` which is a special worker that is run once when the app is deployed, after installing deps (can be useful for build steps).
* `cron` workers, which require a simplified `cron` expression preceding the command to be run (e.g. `cron: */5 * * * * python batch.py` to run a batch every 5 minutes)
* `worker` processes, which are standalone workers and can have arbitrary names
* You can optionally also specify a `release` worker which is run once when the app is deployed.