Fix dagger call hanging in mise tasks on interactive terminals
Mise runs task scripts in a child process group that is not the terminal's foreground group. When dagger detects a TTY it tries to render its TUI, triggering SIGTTOU which stops the process. Adding --progress=plain to all dagger call sites avoids terminal ioctls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
84d2cdcf14
commit
332f8d9069
4 changed files with 4 additions and 3 deletions
1
docs/changelog.d/fix-dagger-tty-hang.bugfix.md
Normal file
1
docs/changelog.d/fix-dagger-tty-hang.bugfix.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fix Dagger pipelines hanging when called from mise tasks in interactive terminals. Added `--progress=plain` to all `dagger call` invocations to prevent SIGTTOU from stopping the process when mise's child process group is not the terminal foreground group.
|
||||||
|
|
@ -14,7 +14,7 @@ OUTPUT_FILE="yolov9-${MODEL_SIZE}-${INPUT_SIZE}.onnx"
|
||||||
echo "Exporting YOLOv9-${MODEL_SIZE} (${INPUT_SIZE}x${INPUT_SIZE}) via Dagger..."
|
echo "Exporting YOLOv9-${MODEL_SIZE} (${INPUT_SIZE}x${INPUT_SIZE}) via Dagger..."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
dagger call export-yolov-9 \
|
dagger call --progress=plain export-yolov-9 \
|
||||||
--model-size="$MODEL_SIZE" \
|
--model-size="$MODEL_SIZE" \
|
||||||
--input-size="$INPUT_SIZE" \
|
--input-size="$INPUT_SIZE" \
|
||||||
export --path="$OUTPUT_FILE"
|
export --path="$OUTPUT_FILE"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ export MISE_TASK_OUTPUT=interleave
|
||||||
|
|
||||||
# Update flake.lock via Dagger before deploying
|
# Update flake.lock via Dagger before deploying
|
||||||
echo "Updating nixos/ringtail/flake.lock..."
|
echo "Updating nixos/ringtail/flake.lock..."
|
||||||
dagger call flake-lock --src=. --flake-path=nixos/ringtail \
|
dagger call --progress=plain flake-lock --src=. --flake-path=nixos/ringtail \
|
||||||
export --path=nixos/ringtail/flake.lock
|
export --path=nixos/ringtail/flake.lock
|
||||||
|
|
||||||
if ! git diff --quiet nixos/ringtail/flake.lock; then
|
if ! git diff --quiet nixos/ringtail/flake.lock; then
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
dagger call validate-workflows --src=.
|
dagger call --progress=plain validate-workflows --src=.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue