Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions function-source/notebook_executor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function run_notebook() {
# Passing parameters file
echo "Parameters file exists, running notebook now..."
PARAMETERS_FILE=$(curl http://metadata.google.internal/computeMetadata/v1/instance/attributes/parameters_file -H "Metadata-Flavor: Google")
gsutil cp "${PARAMETERS_FILE}" params.yaml
gcloud storage cp "${PARAMETERS_FILE}" params.yaml
papermill "${INPUT_NOTEBOOK_PATH}" "${TMP_NOTEBOOK_PATH}" -f params.yaml --log-output
else
metadata_exists parameters
Expand All @@ -87,7 +87,7 @@ function run_notebook() {
fi
fi
# Copy file to avoid GCS limitation: https://github.com/nteract/papermill/issues/312
gsutil cp "${TMP_NOTEBOOK_PATH}" "${OUTPUT_NOTEBOOK_PATH}"
gcloud storage cp "${TMP_NOTEBOOK_PATH}" "${OUTPUT_NOTEBOOK_PATH}"
}


Expand Down