Skip to content

🐞 CLI continues to run AFTER the Engine stops running #9062

Closed

Description

@gerhard

What is the issue?

This is particularly problematic when the Engine exits / gets killed and the CLI continues to run. Without an external timeout (e.g. GitHub Actions job timeout), the CLI execution will not terminate.

Furthermore, pressing q once does not quit the CLI. In other words, the CLI is not able to terminate gracefully when it's no longer connected to the Engine.

Dagger version

dagger v0.14.0 (registry.dagger.io/engine:v0.14.0) darwin/amd64

Steps to reproduce

  1. Run dagger call docs lint in the dagger/dagger repository
  2. Wait for the module to load & context is uploaded (if the Engine is stopped before, the CLI will exit too)
  3. Now stop the Engine - docker stop works. Killing the Engine has the same effect. I discovered this in a scenario when the Engine was getting killed (still debugging that) and the CLI would continue running & returning level=ERROR msg="failed to emit telemetry" error="failed to upload metrics: context deadline exceeded: retry-able request failure"
  4. Observe a variation of the following state:
image

Notice that the CLI continues running, even when the Engine is not around and dagger call is unable to continue making progress.

Log output

Note: this particular Engine instance was stopped & started a few times.

dagger-engine-0-14-0-stopped.txt

Activity

  1. added
    kind/bug
    on Nov 27, 2024
  2. changed the title [-]🐞 CLI continues running when the Engine stops running[/-] [+]🐞 CLI continues to run AFTER the Engine stops running[/+] on Nov 27, 2024
  3. locked and limited conversation to collaborators on Mar 24, 2026
  4. converted this issue into a discussion #12178 on Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugkind/external-help

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions