Andrushika opened a new pull request, #77464: URL: https://github.com/apache/airflow/pull/77464
## Why `breeze exec` runs a command in a Breeze container that is already up. A script cannot use it, and it cannot reach a shell that was started with `--project-name`. Three things stop it: - It always looks in the default compose project of the checkout. `breeze shell` and `breeze down` take `--project-name`, but `breeze exec` does not. - It always passes `-it` to `docker exec`. Without a terminal, Docker stops with "the input device is not a TTY". - If the project has no running container, it reads the word `NAME` from the header of `docker compose ps` as the container. Docker then answers "No such container: NAME". ## What `breeze exec` takes `--project-name`, the same option as `breeze shell`. `PROJECT_NAME` in the environment selects the project too. It passes `-t` to `docker exec` only when both the input and the output are a terminal. It asks `docker compose ps` for container ids only. A project with no running container gives "No airflow container is running in the <name> compose project". The parse code for docker-compose v1 goes away, because Breeze needs Docker Compose 2.20.2 or newer. ```bash breeze exec --project-name my-project -- -c "airflow dags list" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
