Skip to content
Snippets Groups Projects
Commit 430def43 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Rename extra references

parent 84a84856
No related branches found
No related tags found
1 merge request!357Only start ipcluster if the notebook uses cluster_profile
......@@ -37,7 +37,7 @@ echo "Starting influx feeder"
export MPLBACKEND=AGG
# start an ip cluster if requested
if [ "${uuid}" != "NO_CLUSTER" ]
if [ "${ipcluster_profile}" != "NO_CLUSTER" ]
then
${python_path} -m IPython profile create ${ipcluster_profile} --parallel
${python_path} -m ipyparallel.cluster start --n=${cluster_cores} --profile=${ipcluster_profile} --daemon &
......@@ -49,7 +49,7 @@ echo "Running script"
${python_path} -m nbconvert --to rst --ExecutePreprocessor.timeout=36000 --ExecutePreprocessor.allow_errors=True --TemplateExporter.exclude_input=True --execute ${nb_path}
# stop the cluster if requested
if [ "${uuid}" != "NO_CLUSTER" ]
if [ "${ipcluster_profile}" != "NO_CLUSTER" ]
then
${python_path} -m ipyparallel.cluster stop --profile=${ipcluster_profile}
profile_path=$(${python_path} -m IPython locate profile ${ipcluster_profile})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment