mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
restructure readme & docs
This commit is contained in:
22
docs/one-off-tasks.md
Normal file
22
docs/one-off-tasks.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# One-off tasks
|
||||
|
||||
For these, we're using Flask commands, which live in [`/app/commands.py`](../app/commands.py).
|
||||
|
||||
This includes things that might be one-time operations! Using a command allows the operation to be tested,
|
||||
both with `pytest` and with trial runs.
|
||||
|
||||
To run a command on cloud.gov, use this format:
|
||||
|
||||
```
|
||||
cf run-task CLOUD-GOV-SPACE --commmand "YOUR COMMAND HERE" --name YOUR-COMMAND
|
||||
```
|
||||
|
||||
[Here's more documentation](https://docs.cloudfoundry.org/devguide/using-tasks.html) about Cloud Foundry tasks.
|
||||
|
||||
## Celery scheduled tasks
|
||||
|
||||
After scheduling some tasks, run celery beat to get them moving:
|
||||
|
||||
```
|
||||
make run-celery-beat
|
||||
```
|
||||
Reference in New Issue
Block a user