Skip to content

Commit 79e7672

Browse files
committed
fix: pod crashing on dagruns, fix from upstream
1 parent 054fab1 commit 79e7672

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@ FROM apache/airflow:3.1.0
33
# Install the standard providers for Airflow 2 -- can be removed when we upgrade to Airflow 3
44
RUN pip install --no-cache-dir "apache-airflow==${AIRFLOW_VERSION}" apache-airflow-providers-standard
55

6+
# --- Backport Patch, can be removed when we upgrade to Airflow 3.1.1 or later
7+
USER root
8+
RUN apt update && apt install -y patch curl patchutils
9+
10+
RUN set -ex; \
11+
cd /home/airflow/.local/lib/python3.12/site-packages/airflow; \
12+
curl -L https://patch-diff.githubusercontent.com/raw/apache/airflow/pull/56431.patch \
13+
| filterdiff -p1 -i 'airflow-core/src/airflow/*' | patch -p4 -u --verbose
14+
# --- End of backport patch
15+
616
COPY --chown=airflow:root ./dags /opt/airflow/dags

0 commit comments

Comments
 (0)