Skip to content

Commit 0368d8e

Browse files
committed
feat: Orchestrator - Launchers - HuggingFace - Workaround for Dash and other shells that do not support -o pipefail
This affects the official Python images before version 3.9.
1 parent 65bafde commit 0368d8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cloud_pipelines_backend/launchers/huggingface_launchers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,12 @@ def get_exit_code_path() -> str:
223223
input_download_code = "\n".join(input_download_lines)
224224

225225
artifact_uploader_script = f"""
226-
set -e -x -o pipefail
226+
set -e -x
227+
# Workaround for Dash and other shells that do not support -o pipefail.
228+
if (set -o pipefail 2>/dev/null); then
229+
set -o pipefail
230+
fi
231+
227232
# Installing uv
228233
url="https://astral.sh/uv/install.sh"
229234
if command -v curl &>/dev/null; then

0 commit comments

Comments
 (0)