Skip to content

Commit

Permalink
Abort "pip install" in publisher if it takes too long
Browse files Browse the repository at this point in the history
Over the weekend, some "pip install" invocations took forever, for unknown
reasons. Wrap the "pip install" invocation in a timeout, so that it is aborted
and retried if it hangs.
  • Loading branch information
TimoWilken committed Mar 9, 2024
1 parent 1b76e5c commit beec4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish/get-and-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ python3 -m venv "$venv"
. "$venv/bin/activate"
# If DEST is in the cwd, it might be confused for a PyPI package, so make it
# an absolute path.
pip install -U "$(realpath "$DEST")"
timeout 300 python3 -m pip install -U "$(realpath "$DEST")"

ln -nfs "$(basename "$LOG.error")" "$logdir/latest"
cachedir=${NOMAD_TASK_DIR-$PWD}/cache
Expand Down

0 comments on commit beec4f6

Please sign in to comment.