This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit ffee7ab05a396c621acb621c962c3e5a52a06f70
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Mar 16 22:06:25 2021 +0100

    When `breeze stop` is called all integrations are enabled (#14825)
    
    Sometimes when an integration got broken, it could be broken
    permanently due to left-over volume. This was because when
    breeze stop was called the integration were not enabled and
    some volumes were not deleted.
    
    As result, breeze sometimes could not start with integrations, due to
    misterious 'unhealthy' condition of one of the integrations.
    
    This change enables all integrations automatically when
    breeze stop is called so that all volumes are removed.
    
    (cherry picked from commit 5f774fae530577e302c153cc8726c93040ebbde0)
---
 breeze | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/breeze b/breeze
index 5816e04..7ffdebf 100755
--- a/breeze
+++ b/breeze
@@ -1419,6 +1419,11 @@ function breeze::parse_arguments() {
             command_to_run="run_docker_compose"
             docker_compose_command="down"
             EXTRA_DC_OPTIONS+=("--remove-orphans")
+            for INTEGRATION in ${_breeze_allowed_integrations}; do
+                if [[ ${INTEGRATION} != "all" ]]; then
+                    INTEGRATIONS+=("${INTEGRATION}")
+                fi
+            done
             shift
             ;;
         restart)

Reply via email to