You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by di...@apache.org on 2020/06/19 17:27:08 UTC

[airflow] branch v1-10-test updated (ba645ec -> 5b30d45)

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

dimberman pushed a change to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git.


    from ba645ec  [AIRFLOW-4472] Use json.dumps/loads for templating lineage data (#5253)
     new 5bc5018  [AIRFLOW-3973] Commit after each alembic migration (#4797)
     new 5b30d45  Parameterized bash/python in the prod image (#9157)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 entrypoint.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


[airflow] 02/02: Parameterized bash/python in the prod image (#9157)

Posted by di...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dimberman pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 5b30d4537cb39f9c6c4b9fd6acb69b498f7dc707
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Sat Jun 6 09:48:02 2020 +0200

    Parameterized bash/python in the prod image (#9157)
    
    (cherry picked from commit b809afa3e33ec5cc76f846f525ab8d6bdcf9d1f0)
---
 entrypoint.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/entrypoint.sh b/entrypoint.sh
index 3d436e2..220e9b7 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -102,8 +102,12 @@ if [[ -n ${AIRFLOW__CELERY__BROKER_URL} ]] && \
     verify_db_connection "${AIRFLOW__CELERY__BROKER_URL}"
 fi
 
-if [[ ${AIRFLOW_COMMAND} == "" ]]; then
-   exec "/bin/bash"
+if [[ ${AIRFLOW_COMMAND} == "bash" ]]; then
+   shift
+   exec "/bin/bash" "${@}"
+elif [[ ${AIRFLOW_COMMAND} == "python" ]]; then
+   shift
+   exec "python" "${@}"
 fi
 
 # Run the command


[airflow] 01/02: [AIRFLOW-3973] Commit after each alembic migration (#4797)

Posted by di...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dimberman pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 5bc50183e0934f7368d9cd991074b2b581114395
Author: Elliott Shugerman <es...@medianewsgroup.com>
AuthorDate: Tue Jun 9 14:12:47 2020 -0600

    [AIRFLOW-3973] Commit after each alembic migration (#4797)
    
    If `Variable`s are used in DAGs, and Postgres is used for the internal
    database, a fresh `$ airflow initdb` (or `$ airflow resetdb`) spams the
    logs with error messages (but does not fail).
    
    This commit corrects this by running each migration in a separate
    transaction.
    
    Co-authored-by: Elliott Shugerman <ee...@medianewsgroup.com>
    
    (cherry picked from commit ea95e9c7236969acc807c65de0f12633d04753a0)
    (cherry picked from commit 5b48a5394ecf5aa1f2b50a00807e6149ade21968)