Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
#!/bin/bash | ||
|
||
supervisorctl start api | ||
# TODO only start worker/scheduler on first AWS task/container? | ||
|
||
if [ ! -z ${ECS_CONTAINER_METADATA_URI_V4} ]; then | ||
http ${ECS_CONTAINER_METADATA_URI_V4} | ||
echo "METADATA URI: ${METADATA_URI}" | ||
|
||
if [ -z ${METADATA_URI} ]; then | ||
# in docker-compose stack with one task | ||
supervisorctl start worker | ||
supervisorctl start scheduler | ||
else | ||
# in AWS Fargate with potentially multiple tasks | ||
http ${METADATA_URI} | ||
supervisorctl start worker | ||
supervisorctl start scheduler | ||
fi | ||
|
||
supervisorctl start worker | ||
supervisorctl start scheduler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters