-
Notifications
You must be signed in to change notification settings - Fork 27
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
in template oshinko-python-build-dc APP_EXIT = true should mean that the app will exit when it completes. #208
Comments
The code from start.sh that reads APP_EXIT does this function app_exit {
# Sleep forever so the process does not complete
while [ ${APP_EXIT:-false} == false ]
do
sleep 1
done
exit 0
} That should cause an exit if APP_EXIT is true. If not, then we have a bug. Do you have a reproducer we an look at? Start.sh waits for the spark app to complete and then exits, OR intercepts a signal from openshift and the signal handler sets app_exit to TRUE to force an exit. |
Maybe we just need to reword the description. |
Without using a job, there is no way to keep OpenShift from relaunching a spark app that completes. |
We do a workaround to resolv that problem, doing a change in function app_exit in start.sh DC_NAME=$(hostname | awk -F- '{ print $1}') curl -H "Content-Type: application/json-patch+json" Now, replica is set to 0 in Deployment Config. |
{
"description": "Setting this value to 'false' prevents the application from being re-deployed if/when it completes",
"name": "APP_EXIT",
"value": "false",
"required": true
}
The text was updated successfully, but these errors were encountered: