Fix dagger call hanging in mise tasks on interactive terminals #256
4 changed files with 4 additions and 3 deletions
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>
commit
332f8d9069
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 ""
|
||||
|
||||
dagger call export-yolov-9 \
|
||||
dagger call --progress=plain export-yolov-9 \
|
||||
--model-size="$MODEL_SIZE" \
|
||||
--input-size="$INPUT_SIZE" \
|
||||
export --path="$OUTPUT_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
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
|
||||
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