Closed ezio-melotti closed 1 year ago
I created #369 as a better solution to this problem, but it requires a more recent version of docker-compose
than the one currently installed on beta, so in the meanwhile I fixed this PR.
The problem was that this PR was trying to access the $CELERY_WORKER
and $FLASK_WORKER
vars set in a previous workflow step by source simoc_beta.env
, however the env of each step is separate, so the variables were not available.
In order to fix it, I copied the envvars into $GITHUB_ENV
to make them available in the following steps.
I was able to successfully deploy on beta and verify that the scaling worked, which means that until we update docker-compose
and merge #369, this branch now offers a reliable way of redeploying on beta.
Let's merge this while we wait for docker-compose
to be updated.
This should fix the number of celery containers on beta by passing the number of workers from the workflow.