id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_79902489
stackoverflow
DATA_ENGINEERING
Airflow task_group conditional logic always enters else block even when env is "PROD" or "STAGE"
Airflow task_group conditional logic always enters else block even when env is "PROD" or "STAGE" Problem I have an Airflow DAG that uses a @task_group with conditional logic to set task dependencies based on an environment variable. The intent is: In PROD or STAGE: run only table_task (no upstream...
https://stackoverflow.com/questions/79902489/airflow-task-group-conditional-logic-always-enters-else-block-even-when-env-is
python, airflow, directed-acyclic-graphs, airflow-taskflow
1,772,825,436
se_79897553
stackoverflow
DATA_ENGINEERING
Airflow: Dynamic sequential task groups where number of groups is unknown at parse time
Airflow: Dynamic sequential task groups where number of groups is unknown at parse time I have an Airflow DAG where I need to: Fetch a list of items from an Airflow Variable Task A will Batch them into sublists For each batch, create a task group with dynamic task mapping (one task per item in the batch) These tas...
https://stackoverflow.com/questions/79897553/airflow-dynamic-sequential-task-groups-where-number-of-groups-is-unknown-at-par
airflow, airflow-2.x, airflow-taskflow
1,772,169,924
se_55605491
stackoverflow
DATA_ENGINEERING
chart metadata (Chart.yaml) missing on helm upgrade
chart metadata (Chart.yaml) missing on helm upgrade I was following this blog post and at this command, helm upgrade --install airflow airflow/ \ --namespace airflow \ --values values.yaml I got this error. in airflow: chart metadata (Chart.yaml) missing but I actually have the Chart.yaml file under airflo...
https://stackoverflow.com/questions/55605491/chart-metadata-chart-yaml-missing-on-helm-upgrade
kubernetes, airflow, kubernetes-helm, minikube
1,554,875,175
se_77156722
stackoverflow
DATA_ENGINEERING
Docker Airflow and python virtual environment
Docker Airflow and python virtual environment I have apache airflow that is running in a docker environment I have DAGS that where developed for different virtual python environments (different package compositions, different python versions) What is a good way to execute dags in different virtual environments? how s...
https://stackoverflow.com/questions/77156722/docker-airflow-and-python-virtual-environment
python, docker, airflow, virtual-environment
1,695,377,563
se_46731746
stackoverflow
DATA_ENGINEERING
Move data from Postgres/MySQL to S3 using Airflow
Move data from Postgres/MySQL to S3 using Airflow We are trying to move from Pentaho Kettle, to Apache AIrflow to do ETL and centralize all data processes under 1 tool. We use Kettle to daily read data from Postgres/Mysql databases, and move the data to S3 -> Redshift. What is the easiest way to do this? I do not ...
https://stackoverflow.com/questions/46731746/move-data-from-postgres-mysql-to-s3-using-airflow
python, amazon-s3, airflow
1,507,903,447
se_64387296
stackoverflow
DATA_ENGINEERING
Airflow - Export PostgreSQL table using COPY
Airflow - Export PostgreSQL table using COPY In airflow we have Postgres to GCS and S3 operators, these all are using SQL query to fetch the results and export it to the target. But for large tables, COPY method would be preferred. Is there any such operators in Airflow to export the data via COPY and having options t...
https://stackoverflow.com/questions/64387296/airflow-export-postgresql-table-using-copy
python, postgresql, airflow
1,602,843,619
se_74106808
stackoverflow
DATA_ENGINEERING
Unable to connect to snowflake database in airflow using SnowflakeOperator with private key
Unable to connect to snowflake database in airflow using SnowflakeOperator with private key I am trying to connect to snowflake database in airflow by using SnowflakeOperator which operates on created snowflake connection in airflow UI portal (see linked picture below) top part of my snowflake connection where all ess...
https://stackoverflow.com/questions/74106808/unable-to-connect-to-snowflake-database-in-airflow-using-snowflakeoperator-with
airflow, snowflake-cloud-data-platform
1,666,075,886
se_79892973
stackoverflow
DATA_ENGINEERING
Making SQL queries from a task, not SqlExecuteQueryOperator
Making SQL queries from a task, not SqlExecuteQueryOperator I am having trouble writing an Apache Airflow (v. 3.1.7) DAG for the following pipeline: Fetch rows from MS SQL database, based on data_interval Output from (1) is sorted and processed in a Python function. For each row from (2), some additional SQL querie...
https://stackoverflow.com/questions/79892973/making-sql-queries-from-a-task-not-sqlexecutequeryoperator
python, airflow, airflow-taskflow
1,771,595,686
se_79866481
stackoverflow
DATA_ENGINEERING
DBT + Snowflake: how to insert on an autoincrement column?
DBT + Snowflake: how to insert on an autoincrement column? I am migrating a dag and its queries to a new DB using DBT. The problem is that one of the existing tables has an EVENT_ID column, defined as autoincrement, but when the queries try to insert data, DBT asks me to specify the column in the final select when it ...
https://stackoverflow.com/questions/79866481/dbt-snowflake-how-to-insert-on-an-autoincrement-column
sql, snowflake-cloud-data-platform, airflow, dbt
1,768,252,488
se_79887721
stackoverflow
DATA_ENGINEERING
Airflow: Param with None as default causes ParamValidationError
Airflow: Param with None as default causes ParamValidationError Context render_template_as_native_obj=True params={ "date_boundary": Param( default=None, type=["null", "string"], format="date", description="The date boundary for data processing in YYYY-MM-D...
https://stackoverflow.com/questions/79887721/airflow-param-with-none-as-default-causes-paramvalidationerror
airflow, airflow-2.x
1,770,844,925
se_75447936
stackoverflow
DATA_ENGINEERING
Airflow : AirflowSkipException doesn't work
Airflow : AirflowSkipException doesn't work I run a python script through Airflow. The script gets a source file from S3. I want to set the script to mark the task as 'skipped' when there is no file in the bucket. from airflow.exceptions import AirflowSkipException if len(file_list) == 0 : #This means there's no ...
https://stackoverflow.com/questions/75447936/airflow-airflowskipexception-doesnt-work
airflow, airflow-2.x
1,676,378,189
se_54244511
stackoverflow
DATA_ENGINEERING
How to connect to Mongodb in Apache Airflow?
How to connect to Mongodb in Apache Airflow? I am trying to process data from external source and store it in my MongoDB. So I am trying to understand how should I access Mongodb Hook in my operator.
https://stackoverflow.com/questions/54244511/how-to-connect-to-mongodb-in-apache-airflow
mongodb, airflow
1,547,760,276
se_41517798
stackoverflow
DATA_ENGINEERING
Proper way to create dynamic workflows in Airflow
Proper way to create dynamic workflows in Airflow Problem Is there any way in Airflow to create a workflow such that the number of tasks B.* is unknown until completion of Task A? I have looked at subdags but it looks like it can only work with a static set of tasks that have to be determined at Dag creation. Would ...
https://stackoverflow.com/questions/41517798/proper-way-to-create-dynamic-workflows-in-airflow
python, workflow, airflow
1,483,763,572
se_79821117
stackoverflow
DATA_ENGINEERING
Depedency Hell airflow+dbt
Depedency Hell airflow+dbt Hello I'm new to airflow, lately I'm struggling on a project with dbt+airflow+docker. My problem 1) I pip install dbt-core, dbt-duckdb adapter, 2) I try to install airflow with: pip install "apache-airflow[celery]==3.1.3" --constraint "https://raw.githubusercontent.com/apache/airflow/constra...
https://stackoverflow.com/questions/79821117/depedency-hell-airflowdbt
python, pip, airflow, dbt, python-poetry
1,763,240,662
se_79881971
stackoverflow
DATA_ENGINEERING
Reparse external dag from current dag in Airflow 3.0.6
Reparse external dag from current dag in Airflow 3.0.6 We are planning airflow upgrade from 2.7 to 3.0.6. Here we are triggering external dag it is refreshed and having the expected tasks. with 2.6 version, there was direct access to database but 3.0.7 doesnot have direct access Apart from rest apis do we any other so...
https://stackoverflow.com/questions/79881971/reparse-external-dag-from-current-dag-in-airflow-3-0-6
amazon-web-services, airflow
1,770,126,358
se_66903932
stackoverflow
DATA_ENGINEERING
I want to connect from composer to a VM with 'ssh --internal-ip', but I get a permission error
I want to connect from composer to a VM with 'ssh --internal-ip', but I get a permission error I want to connect from composer to a VM with ssh --internal-ip, but I get a permission error. I tested ssh with VM and composer using the same VPC / subnet and it looks like this. What are the possible problems? And ...
https://stackoverflow.com/questions/66903932/i-want-to-connect-from-composer-to-a-vm-with-ssh-internal-ip-but-i-get-a-pe
bash, google-cloud-platform, ssh, google-cloud-composer, airflow
1,617,277,578
se_68432220
stackoverflow
DATA_ENGINEERING
Airflow Kubernetes Pods Exception ERROR - (404) Reason: Not Found
Airflow Kubernetes Pods Exception ERROR - (404) Reason: Not Found I am looking for support to debug this Airflow KubernetesPodOperator Issue. We randomly get this error when the Airflow task executes. The job is almost finished and at the end of the job execution, the pods not found excception throw, (, In Reality, Ai...
https://stackoverflow.com/questions/68432220/airflow-kubernetes-pods-exception-error-404-reason-not-found
kubernetes, kubernetes-pod, airflow-scheduler, airflow
1,626,634,713
se_79869785
stackoverflow
DATA_ENGINEERING
KubernetesExecutor, Airflow 3,SparkSubmitOperator with pod_overwrite fails with json validation error
KubernetesExecutor, Airflow 3,SparkSubmitOperator with pod_overwrite fails with json validation error I'm trying to figure out how to successfully run dag with SparkSubmitOperator on Airflow 3.1.5, I have a wrapper which sets pod config: self.executor_config = { "pod_override": k8s.V1Pod( m...
https://stackoverflow.com/questions/79869785/kubernetesexecutor-airflow-3-sparksubmitoperator-with-pod-overwrite-fails-with
apache-spark, airflow
1,768,597,711
se_72476096
stackoverflow
DATA_ENGINEERING
How to create connection for DB2 database in Apache Airflow(2.2.5)
How to create connection for DB2 database in Apache Airflow(2.2.5) I need to poll DB2 database table until a record is created and once it is successful,i need to trigger a task in dag. For this I have to do below: Create a DB2 connection in airflow Use SQL sensor to poll db table using the connection created in abov...
https://stackoverflow.com/questions/72476096/how-to-create-connection-for-db2-database-in-apache-airflow2-2-5
db2, airflow, sensors
1,654,171,981
se_79868148
stackoverflow
DATA_ENGINEERING
How to call an API when I manually marked a state as success in Airflow UI
How to call an API when I manually marked a state as success in Airflow UI I have created custom Airflow operator to trigger some of my api when the job submits. Everything works fine but one problem is in Airflow UI we have an option to mark state as success, when a user manually click and marked state as success I n...
https://stackoverflow.com/questions/79868148/how-to-call-an-api-when-i-manually-marked-a-state-as-success-in-airflow-ui
airflow
1,768,431,898
se_79754319
stackoverflow
DATA_ENGINEERING
How to clean database from DAG?
How to clean database from DAG? I want to periodically delete old XCom records (e.g. older than 15 days) from inside a DAG. In Airflow 2 I could connect directly to the metadata DB, but in Airflow 3 direct DB access is no longer allowed. The REST API also doesn’t expose a DELETE endpoint for XComs. Question: Is there ...
https://stackoverflow.com/questions/79754319/how-to-clean-database-from-dag
airflow, airflow-xcom
1,756,887,749
se_79803768
stackoverflow
DATA_ENGINEERING
Airflow 3 - Run LocalExecutor with unlimited Parallelism
Airflow 3 - Run LocalExecutor with unlimited Parallelism Airflow Docs say that the LocalExecutor supports an "unlimited Parallelism". Source They do not specify exactly how to run LocalExecutor in this mode, but I assume it is through the core.parallelism Configuration Variable. The problem is, if I set it to zero (ze...
https://stackoverflow.com/questions/79803768/airflow-3-run-localexecutor-with-unlimited-parallelism
airflow
1,761,739,737
se_78697587
stackoverflow
DATA_ENGINEERING
AWS MWAA -- dags not appearing in Airflow UI
AWS MWAA -- dags not appearing in Airflow UI I have created an AWS MWAA environment and correctly pointed it to an S3 bucket as well as an "dags" folder inside the S3 bucket. I have created a simple dag file (python) and added it to my /dags/ directory (configured in my mwaa configurations). However, when I open the A...
https://stackoverflow.com/questions/78697587/aws-mwaa-dags-not-appearing-in-airflow-ui
python, amazon-web-services, airflow, cloud, etl
1,719,929,201
se_68085083
stackoverflow
DATA_ENGINEERING
What is the 'owner' property in Airflow used for?
What is the 'owner' property in Airflow used for? I cannot find any information on what the owner variable is used for in the docs. The only mention of owner I found was in this Stack Overflow question and in the Security section of the docs, both of which don't help in understanding the general concept.
https://stackoverflow.com/questions/68085083/what-is-the-owner-property-in-airflow-used-for
airflow
1,624,370,840
se_79861483
stackoverflow
DATA_ENGINEERING
Airflow 3.0.2 LDAP / Active Directory Authentication Not Working with FabAuthManager
Airflow 3.0.2 LDAP / Active Directory Authentication Not Working with FabAuthManager Is there anyone who has configured LDAP or Active Directory in Airflow? When I try to set things inside webserver_config.py, it doesn’t work. [core] auth_manager = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager And...
https://stackoverflow.com/questions/79861483/airflow-3-0-2-ldap-active-directory-authentication-not-working-with-fabauthman
ldap, airflow, airflow-webserver
1,767,692,186
se_79861880
stackoverflow
DATA_ENGINEERING
Airflow DAG run stuck in queued state after being manually triggered
Airflow DAG run stuck in queued state after being manually triggered I triggered a DAG run of a new DAG from the command line and the DAG is stuck at "queued" state. Why won't it run? All my other existing DAGs are running normally.
https://stackoverflow.com/questions/79861880/airflow-dag-run-stuck-in-queued-state-after-being-manually-triggered
airflow
1,767,725,731
se_60266843
stackoverflow
DATA_ENGINEERING
How to run async function in Airflow?
How to run async function in Airflow? I am writing a airflow task to read a large csv and save it to postgresql database. I found this asyncpg package that has a copy function which runs much faster than any other packages. However, it is async, and I don't know how to incorporate it into Airflow. Here is a sample cod...
https://stackoverflow.com/questions/60266843/how-to-run-async-function-in-airflow
python, async-await, airflow
1,581,957,451
se_70134140
stackoverflow
DATA_ENGINEERING
How can I pass Jinja2 templated parameter to a task using the Taskflow API?
How can I pass Jinja2 templated parameter to a task using the Taskflow API? I have a task that is not correctly rendering one of its parameters if I pass it as "{{ var.json.my_api_key.api_key }}": @task def generate_signature_headers(api_key="{{ var.json.knmi_api_key.api_key }}", hmac_secret_key="{{ var.json....
https://stackoverflow.com/questions/70134140/how-can-i-pass-jinja2-templated-parameter-to-a-task-using-the-taskflow-api
python, jinja2, airflow
1,638,010,649
se_79859170
stackoverflow
DATA_ENGINEERING
Why does Airflow BashOperator fetch multiple days of data when API URL has single-day date range?
Why does Airflow BashOperator fetch multiple days of data when API URL has single-day date range? I am learning Apache Airflow and created a simple DAG to fetch daily events from a REST API.When I call the API directly in the browser, it correctly returns one day of data http://localhost:5000/events?start_date=2019-01...
https://stackoverflow.com/questions/79859170/why-does-airflow-bashoperator-fetch-multiple-days-of-data-when-api-url-has-singl
airflow
1,767,360,604
se_79858084
stackoverflow
DATA_ENGINEERING
Why are the "Last Run" and "Next Run" the same date?
Why are the "Last Run" and "Next Run" the same date? When we run the simple  dag in apache airflow the Last Run  and Next Run show same date why is that dag = DAG( dag_id = '01_unscheduled', schedule_interval='@daily', start_date = dt.datetime(2025,12,27), ) def hello_word(): print...
https://stackoverflow.com/questions/79858084/why-are-the-last-run-and-next-run-the-same-date
airflow
1,767,176,948
se_63548430
stackoverflow
DATA_ENGINEERING
How airflow loads/updates DagBag from dags home folder on google cloud platform?
How airflow loads/updates DagBag from dags home folder on google cloud platform? I would like to understand that how do airflow on Google cloud platform gets the changes from dags home folder to UI. Also Please help me with my dags setup script. I have read so many answers along with books. book link is here I tried ...
https://stackoverflow.com/questions/63548430/how-airflow-loads-updates-dagbag-from-dags-home-folder-on-google-cloud-platform
google-cloud-platform, airflow
1,598,194,704
se_79853189
stackoverflow
DATA_ENGINEERING
Create Application Pools, Roles etc. on startup
Create Application Pools, Roles etc. on startup We have an Airflow 3.1.5 instance which is deployed to k8s (AKS) using the official helm chart (1.1.8). The database is a PostgreSQL managed database instance. This works well, however, I would like to run some initialization on deployment in order to create application ...
https://stackoverflow.com/questions/79853189/create-application-pools-roles-etc-on-startup
airflow
1,766,434,261
se_79844219
stackoverflow
DATA_ENGINEERING
Retrieve the error cause / exception from failed task instances
Retrieve the error cause / exception from failed task instances Let's say I have a DAG with some source1, source2, ... tasks and a sink task, with a simple [source1, source2, ...] >> sink dependency. All of them are @task-annotated Python operators, and the sink task is connected with the ALWAYS TriggerRule. Let's say...
https://stackoverflow.com/questions/79844219/retrieve-the-error-cause-exception-from-failed-task-instances
airflow, airflow-2.x, airflow-taskflow
1,765,473,804
se_52218599
stackoverflow
DATA_ENGINEERING
airflow 'NoneType' object has no attribute 'is_paused',how to fix it?
airflow 'NoneType' object has no attribute 'is_paused',how to fix it? I am new to airflow and I just follow the tutorial to run a dag. Actually I did it successfully, but the problem is when I try to pause the dag by inputing command line like airflow pause dag_id,it throws AttributeError: 'NoneType' o...
https://stackoverflow.com/questions/52218599/airflow-nonetype-object-has-no-attribute-is-paused-how-to-fix-it
python, airflow
1,536,309,355
se_73215831
stackoverflow
DATA_ENGINEERING
How to integrate PHP job in airflow?
How to integrate PHP job in airflow? Can we run PHP Job with Airflow ? i try many methods and search for reference, but most of them make connection with PostgreSQL and easy to connect by setting it in airflow connection || My PHP Job have data from 2 different Docker Port database || I try to run the job in docker te...
https://stackoverflow.com/questions/73215831/how-to-integrate-php-job-in-airflow
php, docker, airflow, etl
1,659,495,330
se_66160780
stackoverflow
DATA_ENGINEERING
First time login to Apache Airflow asks for username and password, what is the username and password?
First time login to Apache Airflow asks for username and password, what is the username and password? I've just installed Apache Airflow, and I'm launching the webserver for the first time, and it asks me for username and password, I haven't set any username or password. Can you let me know what is the default usernam...
https://stackoverflow.com/questions/66160780/first-time-login-to-apache-airflow-asks-for-username-and-password-what-is-the-u
airflow
1,613,068,599
se_79841358
stackoverflow
DATA_ENGINEERING
Orchestrating multi-step workflow failure handlers
Orchestrating multi-step workflow failure handlers Let's say we have the following dummy data: item_input = [ {"value": 1, "fail_step": 1}, {"value": 2, "fail_step": 1}, {"value": 3, "fail_step": 2}, {"value": 4, "fail_step": 2}, {"value": 5, "fail_step": 3}, {"value": 6, "fail_step": 3}, {...
https://stackoverflow.com/questions/79841358/orchestrating-multi-step-workflow-failure-handlers
airflow
1,765,229,495
se_70844233
stackoverflow
DATA_ENGINEERING
Airflow variable masking the value "airflow"
Airflow variable masking the value "airflow" I am exploring airflow variables and created a variable in Airflow whose value has the word 'airflow' in it: var_source_path = /opt/airflow/ While using this variable in my task, the word airflow is being masked with asterisk (***) as below: Task: t1 = BashOperat...
https://stackoverflow.com/questions/70844233/airflow-variable-masking-the-value-airflow
airflow, airflow-2.x
1,643,091,869
se_50862560
stackoverflow
DATA_ENGINEERING
Airflow: set a default value in code when Variable doesn't exist without an exception
Airflow: set a default value in code when Variable doesn't exist without an exception I have a little problem, I want to do the typical conditional like setting_x = Variable.get('setting_x') variable = setting_x if setting_x else 0 But since the Airflow model throws an exception when the key doesn't exist is ...
https://stackoverflow.com/questions/50862560/airflow-set-a-default-value-in-code-when-variable-doesnt-exist-without-an-exce
airflow, airflow-scheduler
1,528,995,651
se_67698656
stackoverflow
DATA_ENGINEERING
How to init db for Airflow? I get docker-compose permission denied
How to init db for Airflow? I get docker-compose permission denied I am trying to run the docker-compose file from the main Airflow website and when I try to do docker-compose up airflow-init it fails and gives me: airflow-init_1 | with open(AIRFLOW_CONFIG, 'w') as file: airflow-init_1 | PermissionErro...
https://stackoverflow.com/questions/67698656/how-to-init-db-for-airflow-i-get-docker-compose-permission-denied
airflow
1,622,004,341
se_43732642
stackoverflow
DATA_ENGINEERING
Status of Airflow task within the dag
Status of Airflow task within the dag I need the status of the task like if it is running or upforretry or failed within the same dag. So i tried to get it using the below code, though i got no output... Auto = PythonOperator( task_id='test_sleep', python_callable=execute_on_emr, op_kwargs={'cmd':'python ...
https://stackoverflow.com/questions/43732642/status-of-airflow-task-within-the-dag
airflow
1,493,710,881
se_43345991
stackoverflow
DATA_ENGINEERING
How to get the JobID for the airflow dag runs?
How to get the JobID for the airflow dag runs? When we execute a dagrun using the Airflow UI, the "Graph View" displays detailed information about each job run. JobID is a unique identifier for each job run, typically formatted as scheduled__YYYY-MM-DDTHH:mm:ss. I require this JobID for tracking and logging purposes, ...
https://stackoverflow.com/questions/43345991/how-to-get-the-jobid-for-the-airflow-dag-runs
python, pyspark, airflow
1,491,913,833
se_73943309
stackoverflow
DATA_ENGINEERING
Airflow Composer - unable to access config file stored in gcp storage, when using PythonOperator
Airflow Composer - unable to access config file stored in gcp storage, when using PythonOperator i'm using Airflow Python operator, which calls an API to get data from external system, parses the data and puts in to MongoDB (I guess i can use the SimpleHttpOperator as well). In the method being called, i need to use t...
https://stackoverflow.com/questions/73943309/airflow-composer-unable-to-access-config-file-stored-in-gcp-storage-when-usin
python, google-cloud-platform, airflow, google-cloud-composer
1,664,859,956
se_79831577
stackoverflow
DATA_ENGINEERING
XCom limit of 1024 in airflow
XCom limit of 1024 in airflow I am hitting the 1024 item limit in the size of a returned list in my task in airflow. I am currently on airflow v2.11. A simple bit of code that reproduces the issue I see is below. import os, datetime import json, random, string from airflow.decorators import dag, task @dag(dag_id="Te...
https://stackoverflow.com/questions/79831577/xcom-limit-of-1024-in-airflow
airflow, task, directed-acyclic-graphs, airflow-xcom
1,764,236,753
se_77426996
stackoverflow
DATA_ENGINEERING
Skipping a task in airflow
Skipping a task in airflow I would like to have an optional task in my dag, which runs according to a dag parameter. If is it skipped - I don't want the downstream tasks to be skipped too. I want it to in a skipped state with the right color so it will be clear it is skipped - that's why I don't want to use a conditio...
https://stackoverflow.com/questions/77426996/skipping-a-task-in-airflow
airflow, airflow-taskflow
1,699,205,837
se_77185468
stackoverflow
DATA_ENGINEERING
Docker Operator fail in Airflow MWAA
Docker Operator fail in Airflow MWAA We are trying to use docker operator in Airflow(MWAA). We are storing docker images in ECR repository in same AWS account. The Airflow DAG with docker operator fails with below error Log Traceback (most recent call last): File "/usr/local/airflow/.local/lib/python3.10/site-packag...
https://stackoverflow.com/questions/77185468/docker-operator-fail-in-airflow-mwaa
python, airflow, amazon-ecr, mwaa, dockeroperator
1,695,800,288
se_59719554
stackoverflow
DATA_ENGINEERING
Airflow Kubernetes executor - multiple namespaces
Airflow Kubernetes executor - multiple namespaces I have a Kubernetes cluster with multiple namespaces. A namespace per each client, that's how we separate clients' data. I want to run a single airflow cluster containing DAGs per client. But is there a way to use the Kubernetes executor so that it will execute each ...
https://stackoverflow.com/questions/59719554/airflow-kubernetes-executor-multiple-namespaces
kubernetes, airflow
1,578,929,321
se_43606311
stackoverflow
DATA_ENGINEERING
Refreshing dags without web server restart Apache Airflow
Refreshing dags without web server restart Apache Airflow Is there a way to reload the jobs without having to restart the server?
https://stackoverflow.com/questions/43606311/refreshing-dags-without-web-server-restart-apache-airflow
airflow
1,493,111,457
se_51252027
stackoverflow
DATA_ENGINEERING
airflow tasks based on previous runs
airflow tasks based on previous runs I have a DAG which basically setups up a Slack channel and invites a bunch of people to it. i don't really need to be creating the channel and adding the users at each DAG run if there has been no changes. at the same time, i need to ensure that the channels and the users already e...
https://stackoverflow.com/questions/51252027/airflow-tasks-based-on-previous-runs
dependencies, task, airflow
1,531,161,336
se_79816400
stackoverflow
DATA_ENGINEERING
Add jinja template value with DateTime value
Add jinja template value with DateTime value In an Airflow Dag file, I'm trying to handle following jinja template variables as DateTime values. Specifically {{ data_interval_start }} and {{ data_interval_end }}, which (according to https://airflow.apache.org/docs/apache-airflow/stable/templates-ref.html) have pendulu...
https://stackoverflow.com/questions/79816400/add-jinja-template-value-with-datetime-value
airflow
1,762,850,268
se_79814387
stackoverflow
DATA_ENGINEERING
What does "state attribute is queued" mean for airflow 3?
What does "state attribute is queued" mean for airflow 3? I try to install the new airflow 3 with docker on a VM with this conf: x-airflow-common: &airflow-common image: ${AIRFLOW_IMAGE} restart: unless-stopped env_file: .env environment: # ---- Airflow (principales) ---- AIRFLOW__DATABASE__S...
https://stackoverflow.com/questions/79814387/what-does-state-attribute-is-queued-mean-for-airflow-3
airflow
1,762,628,401
se_79812081
stackoverflow
DATA_ENGINEERING
How to manage (Google Cloud Composer) Airflow roles with infrastructure as code?
How to manage (Google Cloud Composer) Airflow roles with infrastructure as code? Are there any best practices for handling roles in code? Most of our setup is managed via Terraform. It would be great if there was a possibility. There is a Terraform provider, however using the provider requires the user to already have...
https://stackoverflow.com/questions/79812081/how-to-manage-google-cloud-composer-airflow-roles-with-infrastructure-as-code
google-cloud-platform, airflow, google-cloud-composer, infrastructure-as-code, best-practices
1,762,503,902
se_79808473
stackoverflow
DATA_ENGINEERING
KubernetesPodOperator - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
KubernetesPodOperator - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006) I’m running Apache Airflow inside a Docker container and trying to use the KubernetesPodOperator to run a simple “hello world” pod in an external Kubernetes cluster (not the same one...
https://stackoverflow.com/questions/79808473/kubernetespodoperator-ssl-certificate-verify-failed-certificate-verify-fail
kubernetes, ssl, airflow, kubernetespodoperator
1,762,223,497
se_79807896
stackoverflow
DATA_ENGINEERING
masking secrets airflow 2.4.3
masking secrets airflow 2.4.3 I’m using Apache Airflow 2.4.3 and trying to securely store a Snowflake connection with a private key inside the connection’s extras JSON field. I want to mask the sensitive private_key_content field in the Airflow UI and logs. I’ve set the following environment variables in my deployment...
https://stackoverflow.com/questions/79807896/masking-secrets-airflow-2-4-3
snowflake-cloud-data-platform, airflow, airflow-2.x, airflow-webserver, tooling-recommendation
1,762,175,011
se_77831832
stackoverflow
DATA_ENGINEERING
Docker configuration with official Airflow and Spark
Docker configuration with official Airflow and Spark I'm currently building a set of big data tools in Docker. I'm using Ubuntu 22 locally. Python in its latest version, Apache Spark 3.5.0 and Airflow 2.7.3. I'm having trouble configuring Spark with Airflow. I've read a lot here on this topic and have been looking for...
https://stackoverflow.com/questions/77831832/docker-configuration-with-official-airflow-and-spark
docker, apache-spark, docker-compose, airflow
1,705,488,553
se_79592889
stackoverflow
DATA_ENGINEERING
airflow users create command not working with 3.0 version
airflow users create command not working with 3.0 version I was trying to run below command inside airflow 3.0 version but getting error command not found airflow users create \ --username "airflow" \ --firstname "airflow" -- rest all params here How can we create users using fab auth manager. Please give...
https://stackoverflow.com/questions/79592889/airflow-users-create-command-not-working-with-3-0-version
airflow
1,745,596,179
se_71794801
stackoverflow
DATA_ENGINEERING
Is there a way to limit Apache Airflow catchup interval
Is there a way to limit Apache Airflow catchup interval In Apache Airflow, if we set a DAG's catchup to be True, it will schedule all the runs that were not progressed since the start_date. So in case I turn off a DAG and then turn it on 1 year later, it will schedule tons of runs. And I want to avoid this. So is ther...
https://stackoverflow.com/questions/71794801/is-there-a-way-to-limit-apache-airflow-catchup-interval
python, airflow, airflow-scheduler
1,649,410,745
se_78584560
stackoverflow
DATA_ENGINEERING
Integrating AWS MWAA, dbt-core, astronomer-cosmos
Integrating AWS MWAA, dbt-core, astronomer-cosmos I am trying to do the astronomer-cosmos package in AWS MWAA. The set up is fine and cosmos package is installed as mentioned in requirements.txt file. I maintain the snowflake credentials in aWS secret manager. In dbt profile.yml, passing the connection parameter as th...
https://stackoverflow.com/questions/78584560/integrating-aws-mwaa-dbt-core-astronomer-cosmos
amazon-web-services, snowflake-cloud-data-platform, airflow, dbt, astronomer
1,717,649,902
se_79784468
stackoverflow
DATA_ENGINEERING
How to migrate metadata from Airflow 2.0.x to 3.0.x?
How to migrate metadata from Airflow 2.0.x to 3.0.x? How to migrate the metadata from Airflow version 2.5.1 to Airflow version 3.0.x in MWAA (Managed Workflows for Apache Airflow)? Direct database access has been removed in Airflow 3.0.x. I am not able to import the metadata as previously it allowed to run insert SQLs...
https://stackoverflow.com/questions/79784468/how-to-migrate-metadata-from-airflow-2-0-x-to-3-0-x
airflow
1,759,834,452
se_79789563
stackoverflow
DATA_ENGINEERING
How to correctly use retry_delay or retry_delay_sec in Airflow YAML DAG?
How to correctly use retry_delay or retry_delay_sec in Airflow YAML DAG? I'm currently working with Apache Airflow and trying to configure retries for my DAG tasks using the retry_delay (or retry_delay_sec) parameter in a YAML-based DAG definition. However, I'm running into issues when trying different formats. I've t...
https://stackoverflow.com/questions/79789563/how-to-correctly-use-retry-delay-or-retry-delay-sec-in-airflow-yaml-dag
database, yaml, airflow
1,760,381,121
se_79790744
stackoverflow
DATA_ENGINEERING
Unable to use Airflow variable with function in Jinja template
Unable to use Airflow variable with function in Jinja template I'm trying to pass Airflow logical_date to dbt model so that I can use it in the model (sql). I'm using Airflow 2.11.0. I'm doing below, but the dag couldn't get constructed, with an error says: 'logical_date' is undefined. However it works if I remove ...
https://stackoverflow.com/questions/79790744/unable-to-use-airflow-variable-with-function-in-jinja-template
python, templates, airflow, jinja2, dbt
1,760,494,472
se_79793090
stackoverflow
DATA_ENGINEERING
MWAA Airflow task_instance_mutation_hook not working
MWAA Airflow task_instance_mutation_hook not working I have added a airflow_local_setting.py file to my mwaa s3 bucket at the root of dags folder. I have a dag_policy defined which is being picked up and works as expected. In the same file I have added the below task_instance_mutation_hook from airflow.models.taskinst...
https://stackoverflow.com/questions/79793090/mwaa-airflow-task-instance-mutation-hook-not-working
airflow, airflow-2.x, mwaa, aws-airflow-mwaa
1,760,707,002
se_79789459
stackoverflow
DATA_ENGINEERING
DeprecationWarning 'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated. Use 'HTTP_422_UNPROCESSABLE_CONTENT' instead
DeprecationWarning 'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated. Use 'HTTP_422_UNPROCESSABLE_CONTENT' instead I'm working on AWS EC2. I created a virtual environment and installed all the necessary dependencies. I connected to it via VSCode, and when I try to start the server using the airflow standal...
https://stackoverflow.com/questions/79789459/deprecationwarning-http-422-unprocessable-entity-is-deprecated-use-http-422
python, ubuntu, airflow, fastapi
1,760,372,324
se_79788939
stackoverflow
DATA_ENGINEERING
Unable to establish a connection with Azure Blob using Apache Airflow
Unable to establish a connection with Azure Blob using Apache Airflow I have created a DAG in Airflow that will detect a file in Azure blob storage. This is a sensor that will detect the existence of a blob in Azure blob storage. But it is failing repeatedly with the below error: ValueError: client_id should be the i...
https://stackoverflow.com/questions/79788939/unable-to-establish-a-connection-with-azure-blob-using-apache-airflow
python, airflow
1,760,332,556
se_79789115
stackoverflow
DATA_ENGINEERING
Why do my BigQueryInsertJobOperator tasks in Cloud Composer show long queued durations before running?
Why do my BigQueryInsertJobOperator tasks in Cloud Composer show long queued durations before running? I’m using Cloud Composer (Airflow) and have two BigQuery operators like this: run_aggregation = BigQueryInsertJobOperator( task_id='aggregation_task', configuration={ "query": { "query": a...
https://stackoverflow.com/questions/79789115/why-do-my-bigqueryinsertjoboperator-tasks-in-cloud-composer-show-long-queued-dur
google-bigquery, airflow, google-cloud-composer
1,760,347,942
se_79789112
stackoverflow
DATA_ENGINEERING
apache airflow client connections are failing to connect to pgbouncer sporadically
apache airflow client connections are failing to connect to pgbouncer sporadically We are facing occassional errors while airflow workers and scheduler connecting to pgbouncer. We have tried using external postgres server and bitnami postgres available from airflow helm chart, in both cases we are having challeneges. ...
https://stackoverflow.com/questions/79789112/apache-airflow-client-connections-are-failing-to-connect-to-pgbouncer-sporadical
airflow, pgbouncer
1,760,347,915
se_75508118
stackoverflow
DATA_ENGINEERING
{{ yesterday_ds }} deprecation warning, but what should I be using instead?
{{ yesterday_ds }} deprecation warning, but what should I be using instead? I'm using the {{ yesterday_ds }} to get the date of the day before the execution date, just as the documentation mentions. In the logs I see a deprecation warning: AirflowContextDeprecationWarning: Accessing 'yesterday_ds' from the template i...
https://stackoverflow.com/questions/75508118/yesterday-ds-deprecation-warning-but-what-should-i-be-using-instead
airflow
1,676,889,201
se_47470245
stackoverflow
DATA_ENGINEERING
(Django) ORM in airflow - is it possible?
(Django) ORM in airflow - is it possible? How to work with Django models inside Airflow tasks? According to official Airflow documentation, Airflow provides hooks for interaction with databases (like MySqlHook / PostgresHook / etc) that can be later used in Operators for row query execution. Attaching the core code f...
https://stackoverflow.com/questions/47470245/django-orm-in-airflow-is-it-possible
django, django-models, orm, airflow
1,511,516,137
se_47470245
stackoverflow
DATA_ENGINEERING
(Django) ORM in airflow - is it possible?
(Django) ORM in airflow - is it possible? How to work with Django models inside Airflow tasks? According to official Airflow documentation, Airflow provides hooks for interaction with databases (like MySqlHook / PostgresHook / etc) that can be later used in Operators for row query execution. Attaching the core code f...
https://stackoverflow.com/questions/47470245/django-orm-in-airflow-is-it-possible
django, django-models, orm, airflow
1,511,516,137
se_79786090
stackoverflow
DATA_ENGINEERING
Apache airflow 3.0.6 oralce connection type is not found
Apache airflow 3.0.6 oralce connection type is not found I am using Apache airflow 3.0.6. I am using docker desktop in windows pc. I have oracle connection but it shows below error: Timestamp: 2025-10-09, 12:05:43 Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_...
https://stackoverflow.com/questions/79786090/apache-airflow-3-0-6-oralce-connection-type-is-not-found
airflow, oracleclient
1,759,991,298
se_53206003
stackoverflow
DATA_ENGINEERING
Export all Airflow variables
Export all Airflow variables I have a problem with downloading all Airflow variables from the code. There is an opportunity to export from UI, but i haven't found any way to do it programatically. I discovered only Variable.get('variable_name') method which returns one Airflow variable. There is no variants of gett...
https://stackoverflow.com/questions/53206003/export-all-airflow-variables
python, airflow
1,541,673,571
se_79785182
stackoverflow
DATA_ENGINEERING
Airflow tasks for data without timestamps
Airflow tasks for data without timestamps I would like to use Airflow for some ETL operations, where the source data does not have (indexed) timestamp columns. The source data is a database table where new records of events are appended continuously, with an ever growing incremental integer as a primary key. My immedi...
https://stackoverflow.com/questions/79785182/airflow-tasks-for-data-without-timestamps
airflow
1,759,908,786
se_38992997
stackoverflow
DATA_ENGINEERING
DAG not visible in Web-UI
DAG not visible in Web-UI I am new to Airflow. I am following a tutorial and written following code. from airflow import DAG from airflow.operators.python_operator import PythonOperator from datetime import datetime, timedelta from models.correctness_prediction import CorrectnessPrediction default_args = { 'owne...
https://stackoverflow.com/questions/38992997/dag-not-visible-in-web-ui
python, python-3.x, airflow, directed-acyclic-graphs
1,471,426,694
se_65583927
stackoverflow
DATA_ENGINEERING
Airflow 2 / 3 - ImportError: cannot import name &#39;BashOperator&#39; from &#39;airflow.operators&#39;
Airflow 2 / 3 - ImportError: cannot import name &#39;BashOperator&#39; from &#39;airflow.operators&#39; After upgrading to Airflow 2 (and also in Airflow 3), I started getting this error in some DAGs: ImportError: cannot import name 'BashOperator' from 'airflow.operators' In Airflow 1.x I used: from airflow.operator...
https://stackoverflow.com/questions/65583927/airflow-2-3-importerror-cannot-import-name-bashoperator-from-airflow-ope
airflow
1,609,868,628
se_79780913
stackoverflow
DATA_ENGINEERING
Tasks stuck in queued
Tasks stuck in queued I’m running into an issue with Airflow 3.1 using CeleryExecutor inside Docker Compose, and I can’t figure out what’s wrong. This is for a small project I’m building for my business. The idea is to use Airflow for order workflows — one task pulls new orders from our API, another checks inventory, ...
https://stackoverflow.com/questions/79780913/tasks-stuck-in-queued
airflow
1,759,407,812
se_79778153
stackoverflow
DATA_ENGINEERING
Airflow 3.1. + CeleryExecutor in Docker Compose: DAGs stuck in `queued`, tasks never sent to workers
Airflow 3.1. + CeleryExecutor in Docker Compose: DAGs stuck in `queued`, tasks never sent to workers I’m trying to run Apache Airflow 3.1. with the CeleryExecutor using Docker Compose (together with Redis + Postgres). My problem is, when I trigger a DAG (directly over the command line or how it's supposed to be via Fa...
https://stackoverflow.com/questions/79778153/airflow-3-1-celeryexecutor-in-docker-compose-dags-stuck-in-queued-tasks-n
docker, docker-compose, redis, airflow
1,759,152,177
se_79779432
stackoverflow
DATA_ENGINEERING
How can I run airflow db clean command using BashOperator with Airlfow 3+
How can I run airflow db clean command using BashOperator with Airlfow 3+ I run airflow using official docker compose file. I would like to run a simple command with Airflow BashOperator to clean my logs: clean_database = BashOperator( task_id="clean-database", bash_command=f'airflow db clean --cle...
https://stackoverflow.com/questions/79779432/how-can-i-run-airflow-db-clean-command-using-bashoperator-with-airlfow-3
python, airflow
1,759,258,194
se_50150384
stackoverflow
DATA_ENGINEERING
Importing local module (python script) in Airflow DAG
Importing local module (python script) in Airflow DAG I'm trying to import a local module (a python script) to my DAG. Directory structure: airflow/ ├── dag │   ├── __init__.py │   └── my_DAG.py └── script └── subfolder ├── __init__.py └── local_module.py Sample code in my_DAG.py: #trying...
https://stackoverflow.com/questions/50150384/importing-local-module-python-script-in-airflow-dag
python, airflow
1,525,336,156
se_64219545
stackoverflow
DATA_ENGINEERING
Airflow DAG failing - ERROR - HTTP Error 404: Not Found
Airflow DAG failing - ERROR - HTTP Error 404: Not Found I'm a noob on Apache Airflow. Literally just started and I'm running into an error. I wrote my first dag, and am calling a Python script. It successfully ran and worked initially when I set it up, and I scheduled it to run once a day. I came to check it today and...
https://stackoverflow.com/questions/64219545/airflow-dag-failing-error-http-error-404-not-found
python, airflow, directed-acyclic-graphs
1,601,959,900
se_79633450
stackoverflow
DATA_ENGINEERING
Airflow triggered params: How to put empty string for an optional parameter?
Airflow triggered params: How to put empty string for an optional parameter? Let's say i want an optional param (triggered with config) that can be empty or some string: Param("", type=["null", "string"]) If I leave it empty it will be rendered as None which is not what I expect. Why is such a basic usecase impossible...
https://stackoverflow.com/questions/79633450/airflow-triggered-params-how-to-put-empty-string-for-an-optional-parameter
python, airflow
1,747,905,963
se_79773595
stackoverflow
DATA_ENGINEERING
Does `dag.test()` in Airflow write to the metadata database?
Does `dag.test()` in Airflow write to the metadata database? I’m debugging my DAGs in PyCharm using the dag.test() method (Airflow 2.9.1). I noticed that after running it a few times, my environment got into a weird state (i.e.: multiple calls to one of the endpoints which the DAG is pointed to, probably due to retrie...
https://stackoverflow.com/questions/79773595/does-dag-test-in-airflow-write-to-the-metadata-database
python, pycharm, airflow
1,758,709,672
se_79768362
stackoverflow
DATA_ENGINEERING
BeamRunJavaPipelineOperator giving 404 issue after dataflow is submitted
BeamRunJavaPipelineOperator giving 404 issue after dataflow is submitted Iam using airflow 2.10.5 version to trigger dataflow using BeamRunJavaPipelineOperator , Here getting logs as dataflow submiited and dataflow id is 2025-09-18_01_16_18-13565731205394440306 .Immediately next line getting <HttpError 404 when reque...
https://stackoverflow.com/questions/79768362/beamrunjavapipelineoperator-giving-404-issue-after-dataflow-is-submitted
google-cloud-platform, airflow, google-cloud-dataflow, google-cloud-composer
1,758,195,047
se_79772825
stackoverflow
DATA_ENGINEERING
Airflow Delay(?) - &quot;Queued&quot; - in execution and &quot;ERROR - Error fetching the logs. Try number 0 is invalid.&quot;
Airflow Delay(?) - &quot;Queued&quot; - in execution and &quot;ERROR - Error fetching the logs. Try number 0 is invalid.&quot; I'm using a newer version of airflow (airflow:3.0.6) with docker compose. Essentially I have just copied and slightly modified the official docker-compose file provided by Airflow itself: http...
https://stackoverflow.com/questions/79772825/airflow-delay-queued-in-execution-and-error-error-fetching-the-logs
docker, docker-compose, airflow, airflow-webserver
1,758,643,081
se_79739760
stackoverflow
DATA_ENGINEERING
GCSToGCSOperator is moving folder along with files when using option move_object as True
GCSToGCSOperator is moving folder along with files when using option move_object as True I have a requirement to move files from a source folder to destination folder in different GCS buckets. I am using GCSToGCSOperator with following config: source_bucket: "source_bucket" source_object: "source_folder/" destination_...
https://stackoverflow.com/questions/79739760/gcstogcsoperator-is-moving-folder-along-with-files-when-using-option-move-object
google-cloud-platform, google-cloud-storage, airflow
1,755,598,284
se_79596338
stackoverflow
DATA_ENGINEERING
airflow users create command not working with 3.0 version-failing
airflow users create command not working with 3.0 version-failing airflow users create \ --username aa\ --firstname aa\ --lastname aa\ --role Admin \ --email aa@example.org getting error. tried with below comments. Still not working. Can any one provide the detailed step for airflow user creation...
https://stackoverflow.com/questions/79596338/airflow-users-create-command-not-working-with-3-0-version-failing
airflow
1,745,838,765
se_79764832
stackoverflow
DATA_ENGINEERING
How to access params string within a DAG run in Airflow?
How to access params string within a DAG run in Airflow? I have a dag, which runs several sql scripts on certain tables. There are two options to run this dag: On the production tables On frozen archived tables I want to be able to select which tables to use based on a dag_run param value. The general structure is s...
https://stackoverflow.com/questions/79764832/how-to-access-params-string-within-a-dag-run-in-airflow
python, airflow
1,757,920,156
se_68864140
stackoverflow
DATA_ENGINEERING
AWS MWAA (Managed Apache Airflow) where to put the python code used in the dags?
AWS MWAA (Managed Apache Airflow) where to put the python code used in the dags? Where do you put your actual code? The dags must be thin, this assumes that when the task starts to run it would do the imports, and run some python code. When we were on the standalone airflow I could add to the PYTHON_PATH my project ro...
https://stackoverflow.com/questions/68864140/aws-mwaa-managed-apache-airflow-where-to-put-the-python-code-used-in-the-dags
airflow, managed, mwaa
1,629,471,086
se_79754233
stackoverflow
DATA_ENGINEERING
How to change order and number of tasks to be executed in airflow
How to change order and number of tasks to be executed in airflow I want to create a dag workflow with 5 different branches as follows: The base dag is this: from datetime import datetime, timedelta, date from airflow import DAG from airflow.operators.python import BranchPythonOperator from airflow.providers.common.s...
https://stackoverflow.com/questions/79754233/how-to-change-order-and-number-of-tasks-to-be-executed-in-airflow
python, airflow
1,756,882,952
se_79766986
stackoverflow
DATA_ENGINEERING
Grant permission to newly created DAGs directly during import
Grant permission to newly created DAGs directly during import I am working on a platform allowing user to register DAGs to an airflow instance. Users upload the code for the DAGs they want to import along with a mapping of permission for roles on those DAGs. My tool copies the code in the correct DAG Bundle and uses a...
https://stackoverflow.com/questions/79766986/grant-permission-to-newly-created-dags-directly-during-import
airflow
1,758,092,515
se_79766045
stackoverflow
DATA_ENGINEERING
Airflow DAGs disappear from UI after fixing ImportError for BigQueryCreateEmptyTableOperator
Airflow DAGs disappear from UI after fixing ImportError for BigQueryCreateEmptyTableOperator I'm encountering an issue with my Airflow DAGs in Google Cloud Composer after trying to fix an import error. Context: I have created several DAGs for my Data warehouse (DW) implemented in Google cloud Platform (GCP). Two of th...
https://stackoverflow.com/questions/79766045/airflow-dags-disappear-from-ui-after-fixing-importerror-for-bigquerycreateemptyt
python, google-cloud-platform, airflow, google-cloud-composer
1,758,015,006
se_77310914
stackoverflow
DATA_ENGINEERING
How to use headers in airflow connection
How to use headers in airflow connection I have configured a http connection in airflow. I need to provide an x-api-key for authentication so I added this in the "Extra" section. But the DAG stops with this error: ERROR - Failed to execute job 8 for task get_api_data (Header part ({'x-api-key': '***'}) from ('headers'...
https://stackoverflow.com/questions/77310914/how-to-use-headers-in-airflow-connection
airflow, airflow-2.x
1,697,562,140
se_79761794
stackoverflow
DATA_ENGINEERING
Airflow tasks in sequence: dag file is parsed again?
Airflow tasks in sequence: dag file is parsed again? I'm writing a DAG script for Apache Airflow and I'm running into behaviour that I didn't expect. If you take a look at my example script I was expecting the same timestamp to be printed. Instead, when running this dag, the timestamp gets re-evaluated and prints the ...
https://stackoverflow.com/questions/79761794/airflow-tasks-in-sequence-dag-file-is-parsed-again
python, airflow, task, directed-acyclic-graphs
1,757,586,113
se_57861233
stackoverflow
DATA_ENGINEERING
Using the output of one Python task and using as the input to another Python Task on Airflow
Using the output of one Python task and using as the input to another Python Task on Airflow So I'm creating a data flow with Apache Airflow for grabbing some data that's stored in a Pandas Dataframe and then storing it into MongoDB. So I have two python methods, one for fetching the data and returning the dataframe a...
https://stackoverflow.com/questions/57861233/using-the-output-of-one-python-task-and-using-as-the-input-to-another-python-tas
python, mongodb, airflow, pipeline
1,568,063,394
se_68477312
stackoverflow
DATA_ENGINEERING
Error when starting custom Airflow Docker Image GROUP_OR_COMMAND
Error when starting custom Airflow Docker Image GROUP_OR_COMMAND I created a custom image with the following Dockerfile: FROM apache/airflow:2.1.1-python3.8 USER root RUN apt-get update \ && apt-get -y install gcc gnupg2 \ && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ && curl https...
https://stackoverflow.com/questions/68477312/error-when-starting-custom-airflow-docker-image-group-or-command
docker, airflow
1,626,907,824
se_79756618
stackoverflow
DATA_ENGINEERING
Custom Airflow Image
Custom Airflow Image I have Airflow running on Kubernetes. So, as you know, every task is spun up as it's own pod by the KubernetesExecutor. I have tried to override the individual container images with slim python images, but the pods are failing. Apparently the Airflow image must be present for the system to interac...
https://stackoverflow.com/questions/79756618/custom-airflow-image
docker, image, kubernetes, airflow
1,757,065,020
se_79755472
stackoverflow
DATA_ENGINEERING
Setup s3 log for airflow 3.0.5
Setup s3 log for airflow 3.0.5 I am setting remote_log for airflow to s3 minio. My airflow version is 3.0.5. Here is my configuration: AIRFLOW__LOGGING__REMOTE_TASK_HANDLER_KWARGS: '{"delete_local_copy": true}' AIRFLOW__LOGGING__REMOTE_LOGGING: "True" AIRFLOW__LOGGING__REMOTE_LOG_CONN_ID: "remote_log" AIRFLOW__LOGGING...
https://stackoverflow.com/questions/79755472/setup-s3-log-for-airflow-3-0-5
amazon-s3, airflow
1,756,975,551
se_77224229
stackoverflow
DATA_ENGINEERING
Not able to connect to Azure SQL database from Airflow DAG
Not able to connect to Azure SQL database from Airflow DAG I'm a newbie to Airflow. I have installed Airflow on an Ubuntu VM and configured the connection properties to connect to my Azure SQL database. I have the following code in my DAG : from airflow import DAG from datetime import datetime from airflow.providers.m...
https://stackoverflow.com/questions/77224229/not-able-to-connect-to-azure-sql-database-from-airflow-dag
python, airflow, azure-sql-database
1,696,352,545
se_79753551
stackoverflow
DATA_ENGINEERING
Why is Airflow Bash operator not passing XCom to another operator?
Why is Airflow Bash operator not passing XCom to another operator? I'm working on a task group that needs to pass a variable from a BashOperator to another BashOperator. Each bash operator is invoking Python, and the first Python script needs to return a string in a variable that the second bash operator will take and...
https://stackoverflow.com/questions/79753551/why-is-airflow-bash-operator-not-passing-xcom-to-another-operator
python, airflow, airflow-xcom
1,756,819,335
se_55908676
stackoverflow
DATA_ENGINEERING
Is there a way to pause an airflow DagRun?
Is there a way to pause an airflow DagRun? Is there a way to pause a specific DagRun within Airflow? I want to be able to have multiple, simultaneous executing runs of a single DAG, and I want to be able to pause those runs individually at certain points. The unpause/pause function seems to work only at the DAG leve...
https://stackoverflow.com/questions/55908676/is-there-a-way-to-pause-an-airflow-dagrun
airflow
1,556,561,300
se_79733742
stackoverflow
DATA_ENGINEERING
S3KeySensor to monitor files across multiple S3 buckets
S3KeySensor to monitor files across multiple S3 buckets I've a usecase where I've to monitor for _SUCCESS file creation across two different locations in different S3 buckets I found through S3 airflow docs that it supports passing multiple S3 bucket keys as a list (in such cases it's recommended to not pass bucket_na...
https://stackoverflow.com/questions/79733742/s3keysensor-to-monitor-files-across-multiple-s3-buckets
airflow
1,755,044,130