Fix dagger call hanging in mise tasks on interactive terminals #256

Merged
eblume merged 1 commit from fix-dagger-tty-hang into main 2026-02-23 14:15:59 -08:00
4 changed files with 4 additions and 3 deletions
Showing only changes of commit 332f8d9069 - Show all commits

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>
Erich Blume 2026-02-23 14:14:49 -08:00

View 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.

View file

@ -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 ""
dagger call export-yolov-9 \
dagger call --progress=plain export-yolov-9 \
--model-size="$MODEL_SIZE" \
--input-size="$INPUT_SIZE" \
export --path="$OUTPUT_FILE"

View file

@ -7,7 +7,7 @@ export MISE_TASK_OUTPUT=interleave
# Update flake.lock via Dagger before deploying
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
if ! git diff --quiet nixos/ringtail/flake.lock; then

View file

@ -3,4 +3,4 @@
set -euo pipefail
dagger call validate-workflows --src=.
dagger call --progress=plain validate-workflows --src=.