Skip to content

Run pgpartition when running DB migrations

David Burke requested to merge more-pgpartition into master

Usually Celery runs pgpartition nightly. If celery is failing, we may want a backup solution to run it. This change will eventually run pgpartition on server start. We'll later need to adjust recommended docker compose and helm charts. But those changes won't be breaking changes.

Adjust startup scripts to always run pgpartition after migrate. I also added a run-web.sh which runs run-uwsgi.sh for when we later swap python servers.

To test, replace `./manage.py migrate` with `bin/run-migrate.sh`

Edited by David Burke

Merge request reports