Files
notifications-api/docs/one-off-tasks.md
2022-10-28 12:48:22 -04:00

632 B

One-off tasks

For these, we're using Flask commands, which live in /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-APP --commmand "YOUR COMMAND HERE" --name YOUR-COMMAND

Here's more documentation about Cloud Foundry tasks.

Celery scheduled tasks

After scheduling some tasks, run celery beat to get them moving:

make run-celery-beat