-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide environment variable to disable wait-for-it condition in deployments #4377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool cool, one change requested...
Still wondering why this wouldn't work. It seems like we are changing our code to handle a specific setup instead of figuring out why the setup doesn't work with our code...
docker/start_celery_docker.sh
Outdated
then | ||
POSTGRES_ACTUAL_HOST=$POSTGRES_HOST | ||
# Check if 'STRATUS_MANAGED_SERVICES_ENABLED' is not set or if its value is 'TRUE' | ||
if [[ "${STRATUS_MANAGED_SERVICES_ENABLED}" == "on" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we name this something not NREL-specific... others use this code as well. Something like DISABLE_SERVICE_CHECKS_ON_START
or something? And add a warning that one should not do this unless they are sure their services are running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. That's a better name. Let me fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, this is much more applicable to our external users too!
8ca98e5
to
a1815d1
Compare
This is to fix bug in stratus where celery container halted as wait-for-it script couldn't make socket connection to main connection.
What's this PR do?
This fix disables wait-for-it scripts that are not needed as managed services such as Postgres, Redis are not in docker and are already running. So wait-for-it scrips are not needed in Stratus environment.
How should this be manually tested?
Build Docker image of seed and deploy to Stratus.
What are the relevant tickets?
Screenshots (if appropriate)