#!/bin/sh
set -e

(cd /repos/babbage && pip install -U -e . && echo using `pwd` dev version) || true
(cd /repos/babbage.fiscal-data-package && pip install -U -e . && echo using `pwd` dev version) || true
(cd /repos/tabulator-py && pip install -U -e . && echo using `pwd` dev version) || true
(cd /repos/datapackage-py && pip install -U -e . && echo using `pwd` dev version) || true

FISCAL_PACKAGE_ENGINE=$OS_API_ENGINE bb-fdp-cli create-tables && echo "CREATED TABLES"

python -m celery -A babbage_fiscal.tasks worker &
gunicorn -w 4 os_api.app:app -b 0.0.0.0:8000

#!/bin/sh
set -e

(cd /repos/babbage && pip install -U -e . && echo using `pwd` dev version) || true
(cd /repos/babbage.fiscal-data-package && pip install -U -e . && echo using `pwd` dev version) || true
(cd /repos/tabulator-py && pip install -U -e . && echo using `pwd` dev version) || true
(cd /repos/datapackage-py && pip install -U -e . && echo using `pwd` dev version) || true

FISCAL_PACKAGE_ENGINE=$OS_API_ENGINE bb-fdp-cli create-tables && echo "CREATED TABLES"

python -m celery -A babbage_fiscal.tasks --concurrency=1 worker &
gunicorn -w 4 os_api.app:app -b 0.0.0.0:8000

Set one load task at a time
Set one load task at a time
