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_68302185
stackoverflow
DATA_ENGINEERING
How to control concurrency of a subdag or taskgroup in Airflow?
How to control concurrency of a subdag or taskgroup in Airflow? I have a simple ETL workflow composed of three tasks for each table I want to extract : 1_extract_to_tmp >> 2_push_to_s3 >> 3_delete_tmp As I want to reproduce the same steps for multiple tables, I was thinking of grouping these task in a TaskGroup or a s...
https://stackoverflow.com/questions/68302185/how-to-control-concurrency-of-a-subdag-or-taskgroup-in-airflow
concurrency, airflow, pool
1,625,749,359
se_79569704
stackoverflow
DATA_ENGINEERING
Apache Airflow is not at this location when setting up airflow webserver in podman pod
Apache Airflow is not at this location when setting up airflow webserver in podman pod Looking for advice on this Apache Airflow is not at this location error when spinning up airflow on podman. I was able to create a pod with podman pod create -p 5433:5432 -p 8008:8080 --name airflow-pod and 3 containers within the p...
https://stackoverflow.com/questions/79569704/apache-airflow-is-not-at-this-location-when-setting-up-airflow-webserver-in-podm
airflow, podman, airflow-webserver
1,744,405,127
se_70219893
stackoverflow
DATA_ENGINEERING
Failed to move past 1 pod has unbound immediate PersistentVolumeClaims
Failed to move past 1 pod has unbound immediate PersistentVolumeClaims I am new to Kubernetes, and trying to get apache airflow working using helm charts. After almost a week of struggling, I am nowhere - even to get the one provided in the apache airflow documentation working. I use Pop OS 20.04 and microk8s. When I ...
https://stackoverflow.com/questions/70219893/failed-to-move-past-1-pod-has-unbound-immediate-persistentvolumeclaims
kubernetes, airflow, kubernetes-helm, microk8s
1,638,560,555
se_79590110
stackoverflow
DATA_ENGINEERING
How to mark an Airflow Task Group as Skipped
How to mark an Airflow Task Group as Skipped In our DAGs we have multiple Task Groups that are collapsed due to the number of tasks within them as well as the number of groups. When a task within a group is skipped the overall status of the Task Group is still 'success', so there is no clear way to see from the collap...
https://stackoverflow.com/questions/79590110/how-to-mark-an-airflow-task-group-as-skipped
airflow
1,745,482,984
se_79364423
stackoverflow
DATA_ENGINEERING
How to install Apache Airflow using Podman?
How to install Apache Airflow using Podman? I am a complete newbie on Apache Airflow and currently stuck with the installation phase. I found a lot of YouTube tutorials on installing Airflow using Docker, but my company recently banned Docker due to licensing policy and recommended Podman as an alternative. I googled ...
https://stackoverflow.com/questions/79364423/how-to-install-apache-airflow-using-podman
installation, airflow, podman
1,737,109,353
se_78918979
stackoverflow
DATA_ENGINEERING
Airflow it's running two jobs and returning error in Databricks but ran succesfully
Airflow it's running two jobs and returning error in Databricks but ran succesfully I’m encountering an issue with an Airflow DAG that runs daily. When I trigger the DAG manually, it executes successfully, and all tasks complete without any issues. However, when the DAG runs according to the schedule, the tasks ex...
https://stackoverflow.com/questions/78918979/airflow-its-running-two-jobs-and-returning-error-in-databricks-but-ran-succesfu
airflow, databricks, azure-databricks
1,724,762,923
se_55748050
stackoverflow
DATA_ENGINEERING
Generating uuid and use it across Airflow DAG
Generating uuid and use it across Airflow DAG I'm trying to create a dynamic airflow that has the following 2 tasks: Task 1: Creates files with a generated UUID as part of their name Task 2: Runs a check on those files So I define a variable FILE_UUID and sets it as follow: FILE_UUID = str(uuid.uuid4()) # also creat...
https://stackoverflow.com/questions/55748050/generating-uuid-and-use-it-across-airflow-dag
constants, uuid, airflow
1,555,597,301
se_79579028
stackoverflow
DATA_ENGINEERING
How Does Airflow Handle Multiprocessing Tasks on an 8-Core CPU When parallelism Is Set to 32?
How Does Airflow Handle Multiprocessing Tasks on an 8-Core CPU When parallelism Is Set to 32? I’m using Apache Airflow with the LocalExecutor on a machine that has an 8-core CPU. Let’s say I have a DAG with two tasks that can run in parallel, and each of these tasks uses Python's multiprocessing module to spawn 5 subp...
https://stackoverflow.com/questions/79579028/how-does-airflow-handle-multiprocessing-tasks-on-an-8-core-cpu-when-parallelism
python, airflow, airflow-2.x
1,744,885,394
se_63285403
stackoverflow
DATA_ENGINEERING
How to pause / Un pause multiple dags in airflow
How to pause / Un pause multiple dags in airflow We have 100 of dags which has a prefix with "dag_EDW_HC_*" . we have below command to pause the dag Command: airflow pause dag_id Is there any way we can pause all the 100 dags "dag_EDW_HC_*" in a single go .. (In programmatic in python or any other way) ..?
https://stackoverflow.com/questions/63285403/how-to-pause-un-pause-multiple-dags-in-airflow
airflow, airflow-scheduler
1,596,722,939
se_76129747
stackoverflow
DATA_ENGINEERING
Deploying DAG to airflow running on kubernetes (via helm)
Deploying DAG to airflow running on kubernetes (via helm) What's the easiest/best way to get the code of my DAG onto an instance of airflow that's running on kubernetes (setup via helm)? I see in the airflow-airflow-config ConfigMap that dags_folder = /opt/airflow/dags is defined. But unlike in the local environment, ...
https://stackoverflow.com/questions/76129747/deploying-dag-to-airflow-running-on-kubernetes-via-helm
kubernetes, airflow, kubernetes-helm
1,682,686,073
se_76654534
stackoverflow
DATA_ENGINEERING
Move a database from cloud SQL Server to BigQuery in one go
Move a database from cloud SQL Server to BigQuery in one go I have a database in cloud SQL Server. I need to move the database to BigQuery. Currently I'm using airflow to move one table at a time (downloading as .csv to gcs storage and then moving it to BQ). Is there any other way to move all the tables in one go?
https://stackoverflow.com/questions/76654534/move-a-database-from-cloud-sql-server-to-bigquery-in-one-go
python-3.x, google-bigquery, airflow, google-cloud-sql
1,688,997,775
se_75551360
stackoverflow
DATA_ENGINEERING
Service Account unable to access Google Drive despite having the right access
Service Account unable to access Google Drive despite having the right access I'm facing this issue with the Google Drive File access using the Composer account . The same composer is able to access the file in another environment(same GCP project) using Composer1 but the new environment with composer2 gives this erro...
https://stackoverflow.com/questions/75551360/service-account-unable-to-access-google-drive-despite-having-the-right-access
google-cloud-platform, google-drive-api, airflow, google-cloud-composer, airflow-2.x
1,677,195,463
se_52190926
stackoverflow
DATA_ENGINEERING
How to skip tasks on Airflow?
How to skip tasks on Airflow? I'm trying to understand whether Airflow supports skipping tasks in a DAG for ad-hoc executions? Lets say my DAG graph look like this: task1 > task2 > task3 > task4 And I would like to start my DAG manually from task3, what is the best way of doing that? I've read about ShortCircuitOpe...
https://stackoverflow.com/questions/52190926/how-to-skip-tasks-on-airflow
airflow, directed-acyclic-graphs, airflow-scheduler
1,536,170,045
se_79574001
stackoverflow
DATA_ENGINEERING
Is there a way to reuse a heavy service across tasks in Airflow?
Is there a way to reuse a heavy service across tasks in Airflow? I'm building an Airflow DAG where some of the steps should do ML/NLP processing. I have a service class that loads NLP model in constructor. E.g.: class SentenceService: def __init__(self, model: str = "abc"): self.nlp = spacy.load(model) I'...
https://stackoverflow.com/questions/79574001/is-there-a-way-to-reuse-a-heavy-service-across-tasks-in-airflow
nlp, airflow, microservices
1,744,664,660
se_54728513
stackoverflow
DATA_ENGINEERING
Apache Airflow - get all parent task_ids
Apache Airflow - get all parent task_ids Suppose a following situation: [c1, c2, c3] >> child_task where all c1, c2, c3 and child_task are operators and have task_id equal to id1, id2, id3 and child_id respectively. Task child_task is also a PythonOperator with provide_context=True and python_callable=dummy_func ...
https://stackoverflow.com/questions/54728513/apache-airflow-get-all-parent-task-ids
airflow
1,550,358,000
se_79569343
stackoverflow
DATA_ENGINEERING
Does Airflow Scheduler Pod Location Affect KubernetesPodOperator Task Pod Scheduling? [AWS EKS]
Does Airflow Scheduler Pod Location Affect KubernetesPodOperator Task Pod Scheduling? [AWS EKS] I'm using Airflow with the KubernetesPodOperator (KPO) to run tasks on a Kubernetes cluster [AWS EKS]. At first, I had only one Airflow Scheduler pod, and all my KPO task pods were scheduled onto a single Kubernetes node. W...
https://stackoverflow.com/questions/79569343/does-airflow-scheduler-pod-location-affect-kubernetespodoperator-task-pod-schedu
airflow, amazon-eks
1,744,389,821
se_79567817
stackoverflow
DATA_ENGINEERING
Run docker containers in Airflow hosted in kubernetes
Run docker containers in Airflow hosted in kubernetes I have been trying to deploy airflow using the helm chart (as a subchart) on a kubernetes cluster that is hosted in my homelab. I am facing some issues when migrating the dags I have been testing locally (on docker-compose) to the kubernetes cluster. when you use a...
https://stackoverflow.com/questions/79567817/run-docker-containers-in-airflow-hosted-in-kubernetes
docker, kubernetes, airflow, dockeroperator, kubernetesexecutor
1,744,333,652
se_75165652
stackoverflow
DATA_ENGINEERING
Passing Airflow Context to init_container in KubernetesPodOperator
Passing Airflow Context to init_container in KubernetesPodOperator Airflow's KubernetesPodOperator provides an init_containers parameter, with which you can specify kubernetes init_containers. However init_containers expects a list of kubernetes.models.V1Container, and I don't see any way to pass airflow context (or x...
https://stackoverflow.com/questions/75165652/passing-airflow-context-to-init-container-in-kubernetespodoperator
kubernetes, airflow, kaniko, kubernetespodoperator, git-sync
1,674,078,608
se_64356443
stackoverflow
DATA_ENGINEERING
Allocate memory request and limit for the pods that airflow will create to run tasks in kubernetes
Allocate memory request and limit for the pods that airflow will create to run tasks in kubernetes I have deployed airflow with helm stable/airflow: https://github.com/helm/charts/tree/master/stable/airflow I have deployed it with celery executor and I have run a task that need to read a big table. I am getting this e...
https://stackoverflow.com/questions/64356443/allocate-memory-request-and-limit-for-the-pods-that-airflow-will-create-to-run-t
kubernetes, airflow, kubernetes-helm
1,602,688,574
se_76058151
stackoverflow
DATA_ENGINEERING
Airflow's session.query() produces a SQL query with syntax error to get last task execution date-time
Airflow's session.query() produces a SQL query with syntax error to get last task execution date-time I was working on a task on airflow and part of it was trying to know when was the last time a task of the DAG executed successfully. I found this question here very helpful. It is basically querying the airflow po...
https://stackoverflow.com/questions/76058151/airflows-session-query-produces-a-sql-query-with-syntax-error-to-get-last-tas
python, postgresql, docker, sqlalchemy, airflow
1,681,932,239
se_79522452
stackoverflow
DATA_ENGINEERING
Airflow 2.9.0 OpenTelemetry metrics: Task instance state metrics not appearing in Prometheus
Airflow 2.9.0 OpenTelemetry metrics: Task instance state metrics not appearing in Prometheus Problem I'm using Airflow 2.9.0 with OpenTelemetry metrics integration, but task instance state metrics like ti.start aren't appearing in Prometheus, despite task instance creation metrics showing up correctly. My Setup I have...
https://stackoverflow.com/questions/79522452/airflow-2-9-0-opentelemetry-metrics-task-instance-state-metrics-not-appearing-i
airflow, prometheus, open-telemetry, open-telemetry-collector, observability
1,742,462,773
se_79560826
stackoverflow
DATA_ENGINEERING
Optimize INSERT from staging table into spatial table
Optimize INSERT from staging table into spatial table Background: I use airflow to orchestrate an ETL process which moves data from snowflake to s3 and from s3 to Postgres. The entire process moves around 80 million rows of data from snowflake to Postgres. In Postgres the data is loaded into a staging table before bei...
https://stackoverflow.com/questions/79560826/optimize-insert-from-staging-table-into-spatial-table
python, postgresql, performance, airflow, postgis
1,744,061,435
se_70861475
stackoverflow
DATA_ENGINEERING
Is it possible to call another Function from a Function called by a PythonVirtualenvOperator?
Is it possible to call another Function from a Function called by a PythonVirtualenvOperator? I have my example DAG which I am testing on Airflow 1.10.0. When I use the PythonVirtualenvOperator with a python callable as the following example: def python_virtual_env_callable(): import requests #some code which...
https://stackoverflow.com/questions/70861475/is-it-possible-to-call-another-function-from-a-function-called-by-a-pythonvirtua
python, airflow
1,643,190,563
se_79495997
stackoverflow
DATA_ENGINEERING
How to retrieve the output of a SQL query executed with SQLExecuteQueryOperator in Airflow
How to retrieve the output of a SQL query executed with SQLExecuteQueryOperator in Airflow I'm writing a DAG on Airflow with the following structure: Execute a simple SELECT COUNT(*) on a Starburst database with SQLExecuteQueryOperator; Retrieve the result (which should be 0 or 1) and use it to check whether a certai...
https://stackoverflow.com/questions/79495997/how-to-retrieve-the-output-of-a-sql-query-executed-with-sqlexecutequeryoperator
python, sql, airflow, airflow-xcom, starburst
1,741,527,582
se_53663534
stackoverflow
DATA_ENGINEERING
For Apache Airflow, How can I pass the parameters when manually trigger DAG via CLI?
For Apache Airflow, How can I pass the parameters when manually trigger DAG via CLI? I use Airflow to manage ETL tasks execution and schedule. A DAG has been created and it works fine. But is it possible to pass parameters when manually trigger the dag via cli. For example: My DAG runs every day at 01:30, and process...
https://stackoverflow.com/questions/53663534/for-apache-airflow-how-can-i-pass-the-parameters-when-manually-trigger-dag-via
airflow
1,544,158,850
se_79555288
stackoverflow
DATA_ENGINEERING
Snowflake stored procedure creation from Airflow
Snowflake stored procedure creation from Airflow Problem: I'm unable to create a stored procedure in Snowflake via Airflow. Description: I want to create a Snowflake stored procedure via Airflow. Here is the sample code: CREATE OR REPLACE PROCEDURE test_proc() RETURNS VARCHAR NOT NULL LANGUAGE SQL AS DECLARE excep...
https://stackoverflow.com/questions/79555288/snowflake-stored-procedure-creation-from-airflow
stored-procedures, snowflake-cloud-data-platform, airflow, directed-acyclic-graphs
1,743,769,085
se_79517261
stackoverflow
DATA_ENGINEERING
PlainXComArg not resolving before being passed to Operator
PlainXComArg not resolving before being passed to Operator I'm trying to code a pipeline that uploads attachments to salesforce. I have a Taskflow function that generates the mappings to be used by the SalesforceBulkOperator. At first I thought that simply passing the returned variables would be enough. It isn't. When...
https://stackoverflow.com/questions/79517261/plainxcomarg-not-resolving-before-being-passed-to-operator
python, airflow, salesforce, airflow-taskflow, airflow-xcom
1,742,297,588
se_71763255
stackoverflow
DATA_ENGINEERING
Bigquery | Result of ORDER BY queries cannot be partitioned by field
Bigquery | Result of ORDER BY queries cannot be partitioned by field I am using Bigquery Operator for my Airflow Task. I am passing an Sql query to operator and trying to insert result of BQ query into a BQ table. While doing this, getting below error google.api_core.exceptions.BadRequest: 400 Result of ORDER BY queri...
https://stackoverflow.com/questions/71763255/bigquery-result-of-order-by-queries-cannot-be-partitioned-by-field
airflow, bq
1,649,232,775
se_74661089
stackoverflow
DATA_ENGINEERING
How to stop DockerOperator after another one is completed Airflow
How to stop DockerOperator after another one is completed Airflow So, basically i have an airflow dag that is as follow: Operator T1 execute a container that listen on a port forever Operator T2 execute a container that will use the container from T1 inside a python script Operator T3 execute a python script that doe...
https://stackoverflow.com/questions/74661089/how-to-stop-dockeroperator-after-another-one-is-completed-airflow
docker, airflow, directed-acyclic-graphs, dockeroperator
1,670,012,470
se_79546105
stackoverflow
DATA_ENGINEERING
process the dag based on the value of dag_run
process the dag based on the value of dag_run I want to run my dag based on the value of dag_run which means if the dag is triggered manually then it should pass a particular value in the dag task otherwise if it is scheduled it should pass some other value. I am trying the below code :- def get_the_date(**context):...
https://stackoverflow.com/questions/79546105/process-the-dag-based-on-the-value-of-dag-run
airflow, airflow-2.x, airflow-webserver
1,743,420,194
se_75470878
stackoverflow
DATA_ENGINEERING
Passing results of BigQuery query task to the next task while using template macro
Passing results of BigQuery query task to the next task while using template macro This seems a peculiar struggle, so I'm sure I'm missing something. Somehow I can't seem to pass values using XCOM, unless I'm using functions to execute the tasks that provide and use the information and call them from PythonOperator. T...
https://stackoverflow.com/questions/75470878/passing-results-of-bigquery-query-task-to-the-next-task-while-using-template-mac
python, airflow, google-cloud-composer
1,676,543,154
se_73862265
stackoverflow
DATA_ENGINEERING
Why Are My Airflow Jobs Running “One Interval Late”?
Why Are My Airflow Jobs Running “One Interval Late”? For example, I created a new DAG at 11:30. The DAG is supposed to run on the first minute of every hour (Cron: 0 * * * *). I expected the DAG to start at 12:00. However the DAG first started at 13:00. The Second started at 14:00 while Next run in UI is 13:00 I know ...
https://stackoverflow.com/questions/73862265/why-are-my-airflow-jobs-running-one-interval-late
airflow
1,664,251,605
se_79545368
stackoverflow
DATA_ENGINEERING
Understand the value of the enviroment variabe?
Understand the value of the enviroment variabe? this line is assigned to an enviroment variable: postgresql+psycopg2://airflow:airflow@postgres/airflow And I do not really understand what it's mean.
https://stackoverflow.com/questions/79545368/understand-the-value-of-the-enviroment-variabe
linux, bash, airflow
1,743,384,949
se_75167055
stackoverflow
DATA_ENGINEERING
How to get region-name from DAG in MWAA
How to get region-name from DAG in MWAA I would like to know how to get a region name like ap-northeast-1 from DAG in MWAA. Is it possible to get it? We can get region name from config file. However, we would like to refer it without config file.
https://stackoverflow.com/questions/75167055/how-to-get-region-name-from-dag-in-mwaa
airflow, mwaa
1,674,093,099
se_79542342
stackoverflow
DATA_ENGINEERING
astro docker start failing with error `airflow create_user` command, has been removed
astro docker start failing with error `airflow create_user` command, has been removed I am trying to execute a astronomer docker container to run airflow in local. this is the Dockerfile content FROM quay.io/astronomer/astro-runtime:9.14.0-python-3.11-base the docker container is stuck in restarting and never getting...
https://stackoverflow.com/questions/79542342/astro-docker-start-failing-with-error-airflow-create-user-command-has-been-re
airflow, astronomer
1,743,192,886
se_71474527
stackoverflow
DATA_ENGINEERING
Airflow - creating a months worth of backfills in the Airflow UI for a DAG that runs daily
Airflow - creating a months worth of backfills in the Airflow UI for a DAG that runs daily I have a DAG that runs daily starting from 3/3/2022, but i need to backfill for 1/1 - 3/2. I know I can add a new DAG run in the UI by going to Browse -> DAG runs and adding in a run for each day but that would take a long time ...
https://stackoverflow.com/questions/71474527/airflow-creating-a-months-worth-of-backfills-in-the-airflow-ui-for-a-dag-that
airflow, airflow-scheduler, airflow-2.x
1,647,293,864
se_78556386
stackoverflow
DATA_ENGINEERING
How to create a custom role with specific permissions in Airflow using AirflowSecurityManager or other?
How to create a custom role with specific permissions in Airflow using AirflowSecurityManager or other? I'm currently working on a project where I need to create custom roles with specific permissions in Apache Airflow. I have a dictionary that contains the role names and their corresponding permissions. Here is an ex...
https://stackoverflow.com/questions/78556386/how-to-create-a-custom-role-with-specific-permissions-in-airflow-using-airflowse
python, security, airflow, roles
1,717,088,790
se_79537667
stackoverflow
DATA_ENGINEERING
Compare data before save to SQL Server
Compare data before save to SQL Server My project is to create a DAG that extracts data from a SQL Server database, transforms it, and then loads it into the other database. I have created a connection in Airflow called Ancillary, which connects to the SQL Server database. I have also created a table in the database c...
https://stackoverflow.com/questions/79537667/compare-data-before-save-to-sql-server
python-3.x, sql-server, docker, airflow
1,743,041,158
se_77104920
stackoverflow
DATA_ENGINEERING
Cross dag data exchange using Xcom
Cross dag data exchange using Xcom can We use Xcom to exchange data between two different Dags? So that My second dag should get the value from latest job of first Dag. So that My second dag should get the value from latest job of first Dag If not what is the process to data exchange.
https://stackoverflow.com/questions/77104920/cross-dag-data-exchange-using-xcom
airflow
1,694,694,776
se_79523536
stackoverflow
DATA_ENGINEERING
Can you raise an AirflowException without dumping the entire traceback into the logs?
Can you raise an AirflowException without dumping the entire traceback into the logs? In Airflow, you're suppose to raise an AirflowException if you want a task to be marked as a failure. But the raised error doesn't seem to be caught in the top-level Airflow module, and so it results in the entire stacktrace being du...
https://stackoverflow.com/questions/79523536/can-you-raise-an-airflowexception-without-dumping-the-entire-traceback-into-the
python, airflow
1,742,487,850
se_79526694
stackoverflow
DATA_ENGINEERING
Airflow on Kubernetes with KubernetesExecutor only running one pod at a time
Airflow on Kubernetes with KubernetesExecutor only running one pod at a time I am running airflow on kubernetes with a Chart.yaml file: apiVersion: v2 name: airflow description: Umbrella chart for Airflow type: application version: 0.0.1 appVersion: "2.1.2" dependencies: - name: airflow alias: airflow versio...
https://stackoverflow.com/questions/79526694/airflow-on-kubernetes-with-kubernetesexecutor-only-running-one-pod-at-a-time
kubernetes, airflow, kubernetes-helm
1,742,597,285
se_79524433
stackoverflow
DATA_ENGINEERING
How exactly to understand documentations without any explanation in Airflow?
How exactly to understand documentations without any explanation in Airflow? I try to understand The PostgresHook in Airflow. Here is the documentation: https://airflow.apache.org/docs/apache-airflow/1.10.6/_api/airflow/hooks/postgres_hook/index.html Now for example if I wanna understand the function get_conn(self) I...
https://stackoverflow.com/questions/79524433/how-exactly-to-understand-documentations-without-any-explanation-in-airflow
python, postgresql, airflow, document, airflow-2.x
1,742,522,914
se_79526704
stackoverflow
DATA_ENGINEERING
trying to use MysqlOperator and PostgresOperator of Airflow
trying to use MysqlOperator and PostgresOperator of Airflow I am trying to use MysqlOperator and PostgresOperator of Airflow from airflow.operators.postgres_operator import PostgresOperator from airflow.providers.mysql.operators.mysql import MySqlOperator Even though I installed all the required files, I still get th...
https://stackoverflow.com/questions/79526704/trying-to-use-mysqloperator-and-postgresoperator-of-airflow
airflow
1,742,597,631
se_72283506
stackoverflow
DATA_ENGINEERING
How to upgrade airflow?
How to upgrade airflow? There seems to be no proper documentation about upgrading airflow. The Upgrading Airflow to a newer version page only talks about upgrading the database. So what is the proper way of upgrading airflow? Is it just upgrading the python packages to the newest versions? Or should I use the same ven...
https://stackoverflow.com/questions/72283506/how-to-upgrade-airflow
airflow
1,652,850,844
se_79522584
stackoverflow
DATA_ENGINEERING
{{ ds }} isn't interpreted in my airflow dag
{{ ds }} isn't interpreted in my airflow dag My goal is to dynamically create some SFTPToS3Operator to retrieve files from a server to Amazon S3. For instance, ,my filename is xxx_date_hours_minutes_seconds.csv, so I want to fetch filename from the server to use it in the SFTPToS3Operator operator. The main proble...
https://stackoverflow.com/questions/79522584/ds-isnt-interpreted-in-my-airflow-dag
python, airflow
1,742,465,875
se_79522992
stackoverflow
DATA_ENGINEERING
How to pass a variable from a function to dependent dag tasks
How to pass a variable from a function to dependent dag tasks I am trying to write a function as below that returns a date :- def date_fn(): d = datetime.today() - timedelta(days=days_to_subtract) return d And then want to pass on this "d" to my dag and its dependent dag: #constants SCHEDULE= "0 8 * * 4" with DAG(...
https://stackoverflow.com/questions/79522992/how-to-pass-a-variable-from-a-function-to-dependent-dag-tasks
airflow, airflow-webserver, airflow-api
1,742,474,985
se_79523426
stackoverflow
DATA_ENGINEERING
Is it possible to unzip a zip file stored on S3 without downloading it?
Is it possible to unzip a zip file stored on S3 without downloading it? I have a zip file on S3 and I need to unzip it by means of a DAG on Airflow. Is it possible to do it without downloading it? I have no clue of how it should be done and had no idea about how to start.
https://stackoverflow.com/questions/79523426/is-it-possible-to-unzip-a-zip-file-stored-on-s3-without-downloading-it
python, amazon-s3, zip, airflow, unzip
1,742,484,935
se_79522209
stackoverflow
DATA_ENGINEERING
Apache Airflow XCOM pull returns None in the context of dynamically mapped tasks
Apache Airflow XCOM pull returns None in the context of dynamically mapped tasks I am having issues with XCOM communication in the context of dynamically mapped tasks. Here is my code snippet: with DAG( params={ "shas": Param( type="array", items={ "type": "string", }, ), }, ) as ...
https://stackoverflow.com/questions/79522209/apache-airflow-xcom-pull-returns-none-in-the-context-of-dynamically-mapped-tasks
airflow
1,742,456,726
se_47096829
stackoverflow
DATA_ENGINEERING
Airflow - Get start time of dag run
Airflow - Get start time of dag run Is it possible to get the actual start time of a dag in Airflow? By start time I mean the exact time the first task of a dag starts running. I know I can use macros to get the execution date. If the job is ran using trigger_dag this is what I would call a start time but if the job ...
https://stackoverflow.com/questions/47096829/airflow-get-start-time-of-dag-run
airflow
1,509,715,455
se_79402942
stackoverflow
DATA_ENGINEERING
How do I use the EKSPodOperator with in_cluster set to True with a ServiceAccount without getting an Error
How do I use the EKSPodOperator with in_cluster set to True with a ServiceAccount without getting an Error Looking for help on using the EKSPodOperator. My set up is as follows: Airflow Version: 2.6.2 deployed with the official helm chart v1.15.0 Kubernetes Cluster: EKS 1.30 Executor: LocalExecutor Postgres Database i...
https://stackoverflow.com/questions/79402942/how-do-i-use-the-ekspodoperator-with-in-cluster-set-to-true-with-a-serviceaccoun
amazon-web-services, kubernetes, airflow, amazon-eks, kubernetespodoperator
1,738,331,609
se_78575478
stackoverflow
DATA_ENGINEERING
Can not connect to ClickHouse via Apache Airflow (all inside Docker)
Can not connect to ClickHouse via Apache Airflow (all inside Docker) I have a ClickHouse server and Airflow as Docker containers in WSL. They're both running and I even managed to connect to ClickHouse somehow, but when trying to query I get the following traceback in Airflow logs: [2024-06-04, 12:17:49 UTC] {logging_...
https://stackoverflow.com/questions/78575478/can-not-connect-to-clickhouse-via-apache-airflow-all-inside-docker
docker, airflow, windows-subsystem-for-linux, clickhouse
1,717,505,030
se_67825867
stackoverflow
DATA_ENGINEERING
Trigger airflow DAG manually with parameter and pass them into Python function
Trigger airflow DAG manually with parameter and pass them into Python function I want to pass parameters into airflow DAG and use them in python function. I can use the parameter into bash operator, but I can’t find any reference to use them as python function. from airflow import DAG from airflow.operators.bash_opera...
https://stackoverflow.com/questions/67825867/trigger-airflow-dag-manually-with-parameter-and-pass-them-into-python-function
python, airflow
1,622,740,391
se_74204076
stackoverflow
DATA_ENGINEERING
How to set up pgbouncer in a docker-compose setup for Airflow
How to set up pgbouncer in a docker-compose setup for Airflow I'm running a distributed Airflow setup using docker-compose. The main part of the services are run on one server and the celery workers are run on multiple servers. I have few hundred tasks running every five minutes and I started to run out of db connecti...
https://stackoverflow.com/questions/74204076/how-to-set-up-pgbouncer-in-a-docker-compose-setup-for-airflow
postgresql, docker-compose, airflow, pgbouncer
1,666,769,083
se_60077575
stackoverflow
DATA_ENGINEERING
Can I programmatically determine if an Airflow DAG was scheduled or manually triggered?
Can I programmatically determine if an Airflow DAG was scheduled or manually triggered? I want to create a snippet that passes the correct date based on whether the DAG was scheduled or whether it was triggered manually. The DAG runs monthly. The DAG generates a report (A SQL query) based on the data of the previous m...
https://stackoverflow.com/questions/60077575/can-i-programmatically-determine-if-an-airflow-dag-was-scheduled-or-manually-tri
airflow
1,580,911,510
se_65634261
stackoverflow
DATA_ENGINEERING
How to import Airflow's PostgresOperator
How to import Airflow's PostgresOperator I'm trying to import the PostgresOperator from the airflow package: from airflow.providers.postgres.operators.postgres import PostgresOperator But I'm getting the following error: Cannot find reference 'postgres' in imported module airflow.providers.
https://stackoverflow.com/questions/65634261/how-to-import-airflows-postgresoperator
python, airflow
1,610,129,535
se_51630344
stackoverflow
DATA_ENGINEERING
Airflow SimpleHttpOperator for HTTPS
Airflow SimpleHttpOperator for HTTPS I'm trying to use SimpleHttpOperator to consume a RESTful API. But, as the name suggests, it only supports the HTTP protocol, where I need to consume an HTTPS URI. Now, I have to use either the requests object from Python or handle the invocation from within the application code. B...
https://stackoverflow.com/questions/51630344/airflow-simplehttpoperator-for-https
https, airflow
1,533,117,279
se_50132985
stackoverflow
DATA_ENGINEERING
ImportError : cannot import DAG airflow
ImportError : cannot import DAG airflow I have simple code, I am trying to import DAG from airflow from airflow import DAG from airflow.operators import BashOperator,S3KeySensor from datetime import datetime, timedelta import psycopg2 from datetime import date, timedelta yesterday = date.today() - timedelta(1) yeste...
https://stackoverflow.com/questions/50132985/importerror-cannot-import-dag-airflow
python, python-2.7, airflow
1,525,258,691
se_68821360
stackoverflow
DATA_ENGINEERING
Airflow xcom return a string in list format instead of just a string value?
Airflow xcom return a string in list format instead of just a string value? I have an Airflow operator that returns a string value, and the task is named 'task1'. So, after execution, I go into xcom and check the return_value, and it's just a string (screenshot below). xcom key/value screenshot Then I have an operator...
https://stackoverflow.com/questions/68821360/airflow-xcom-return-a-string-in-list-format-instead-of-just-a-string-value
airflow, jinja2
1,629,219,658
se_79500415
stackoverflow
DATA_ENGINEERING
NoneType' object is not callable [Airflow Dag Error while creating dependencies]
NoneType' object is not callable [Airflow Dag Error while creating dependencies] In my use case I want to trigger another DAG from one DAG. My first DAG is as below :- with DAG( dag_id = "data_insertion", start_date = datetime(2024, 10, 8), schedule_interval = SCHEDULE, dagrun_timeout = timedelta(minutes=15), de...
https://stackoverflow.com/questions/79500415/nonetype-object-is-not-callable-airflow-dag-error-while-creating-dependencies
airflow, airflow-2.x, airflow-taskflow
1,741,688,945
se_79497424
stackoverflow
DATA_ENGINEERING
ModuleNotFoundError: No module named 'airflow.providers.oracle' in airflow docker compose
ModuleNotFoundError: No module named 'airflow.providers.oracle' in airflow docker compose I am using docker compose to run airflow, by using the yaml file from https://airflow.apache.org/docs/apache-airflow/2.10.5/docker-compose.yaml. Here is the docker-compose yaml file that I used: # Licensed to the Apache S...
https://stackoverflow.com/questions/79497424/modulenotfounderror-no-module-named-airflow-providers-oracle-in-airflow-docke
docker, docker-compose, airflow
1,741,595,680
se_79484996
stackoverflow
DATA_ENGINEERING
error "google.api_core.exceptions.InvalidArgument: 400 Cluster name is required" while trying to use airflow DataprocSubmitJobOperator
error "google.api_core.exceptions.InvalidArgument: 400 Cluster name is required" while trying to use airflow DataprocSubmitJobOperator I'm trying to use the Dataproc submit job operator from Airflow (https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_api/airflow/providers/google/cloud/op...
https://stackoverflow.com/questions/79484996/error-google-api-core-exceptions-invalidargument-400-cluster-name-is-required
airflow, google-cloud-dataproc, directed-acyclic-graphs
1,741,126,286
se_68166118
stackoverflow
DATA_ENGINEERING
Airflow DAG - access context using SimpleHttpOperator to enable XCOM pull
Airflow DAG - access context using SimpleHttpOperator to enable XCOM pull I am struggling to pull xcoms into a task using the SimpleHttpOperator. The below dag is meant to orchestrate a number of requests (via Google Cloud Functions) made to a third-party API, store the CSVs in Storage, and eventually access all the C...
https://stackoverflow.com/questions/68166118/airflow-dag-access-context-using-simplehttpoperator-to-enable-xcom-pull
python, airflow, google-cloud-composer
1,624,894,222
se_73922955
stackoverflow
DATA_ENGINEERING
Is there any advantage to using SimpleHttpOperator over regular python requests in Airflow?
Is there any advantage to using SimpleHttpOperator over regular python requests in Airflow? In airflow, I learned about using the SimpleHttpOperator to grab JSON from an API. Without airflow, I would just get the JSON using requests. Is there any advantage to using the airflow way rather than just hooking up a request...
https://stackoverflow.com/questions/73922955/is-there-any-advantage-to-using-simplehttpoperator-over-regular-python-requests
http, request, airflow
1,664,676,766
se_79492367
stackoverflow
DATA_ENGINEERING
Can Airflow task dependencies be re-used?
Can Airflow task dependencies be re-used? I have a series of airflow DAGs which re-use some of the task dependencies. For example DAG 1: T1 >> T2 DAG 2: T1 >> T2 >> T3 DAG 3: T1 >> T2 >> T3 >> [T4, T5, T6] >> T7 I would like to store the dependencies from DAG 1 (which in this model, are being used by every other DA...
https://stackoverflow.com/questions/79492367/can-airflow-task-dependencies-be-re-used
python, airflow, directed-acyclic-graphs
1,741,351,914
se_79492367
stackoverflow
DATA_ENGINEERING
Can Airflow task dependencies be re-used?
Can Airflow task dependencies be re-used? I have a series of airflow DAGs which re-use some of the task dependencies. For example DAG 1: T1 >> T2 DAG 2: T1 >> T2 >> T3 DAG 3: T1 >> T2 >> T3 >> [T4, T5, T6] >> T7 I would like to store the dependencies from DAG 1 (which in this model, are being used by every other DA...
https://stackoverflow.com/questions/79492367/can-airflow-task-dependencies-be-re-used
python, airflow, directed-acyclic-graphs
1,741,351,914
se_78090683
stackoverflow
DATA_ENGINEERING
Python Dependecies for DataprocCreateBatchOperator
Python Dependecies for DataprocCreateBatchOperator Cannot submit Python job onto dataproc serverless when third party python dependencies are needed. It's working fine when dependencies are not needed. I push up the pyspark python file to a cloud storage bucket and then the DataprocCreateBatchOperator reads in that fi...
https://stackoverflow.com/questions/78090683/python-dependecies-for-dataproccreatebatchoperator
python, google-cloud-platform, pip, airflow, dataproc
1,709,330,778
se_79484458
stackoverflow
DATA_ENGINEERING
Use Jinja template for table name inside SQLExecuteQueryOperator params or parameter
Use Jinja template for table name inside SQLExecuteQueryOperator params or parameter I am using SQLExecuteQuery Operator to query a table, which name is dynamically generated (e.g. staging_{{ts_nodash}}). I know I can, but I don't want to use the jinja template inside sql (example below). Because I will have to 'hardc...
https://stackoverflow.com/questions/79484458/use-jinja-template-for-table-name-inside-sqlexecutequeryoperator-params-or-param
airflow, python-db-api
1,741,109,757
se_79489078
stackoverflow
DATA_ENGINEERING
No space error while running Spark from Airflow
No space error while running Spark from Airflow I am running the following code in Airflow from MWAA. The input data is approximately 400 GB in size I am running the code in environment class mw1.large. Up to 1000 DAG capacity 20 concurrent tasks (by default) Components: Web servers: 2 vCPU 4GB RAM each Workers: 4 vCP...
https://stackoverflow.com/questions/79489078/no-space-error-while-running-spark-from-airflow
python, amazon-web-services, apache-spark, pyspark, airflow
1,741,258,278
se_79470544
stackoverflow
DATA_ENGINEERING
How to access the response (export Manifest) from Airflow DynamoDBToS3Operator
How to access the response (export Manifest) from Airflow DynamoDBToS3Operator How do I access the response of DynamoDBToS3Operator, so that I can pass the get the export location. I found out that response['ExportManifest'] contains the path to manifest_summary.json (and contains ExportId), which I can parse to get /...
https://stackoverflow.com/questions/79470544/how-to-access-the-response-export-manifest-from-airflow-dynamodbtos3operator
amazon-dynamodb, airflow, airflow-2.x
1,740,590,096
se_74808401
stackoverflow
DATA_ENGINEERING
How to add a Minio connection to Airflow connections?
How to add a Minio connection to Airflow connections? I am trying to add a running instance of MinIO to Airflow connections, I thought it should be as easy as this setup in the GUI (never mind the exposed credentials, this is a blocked of environment and will be changed afterwards): Airflow as well as minio are runni...
https://stackoverflow.com/questions/74808401/how-to-add-a-minio-connection-to-airflow-connections
docker, amazon-s3, airflow, minio
1,671,090,998
se_44856214
stackoverflow
DATA_ENGINEERING
How to add new DAGs to Airflow?
How to add new DAGs to Airflow? I have defined a DAG in a file called tutorial_2.py (actually a copy of the tutorial.py provided in the airflow tutorial, except with the dag_id changed to tutorial_2). When I look inside my default, unmodified airflow.cfg (located in ~/airflow), I see that dags_folder is set to /home/...
https://stackoverflow.com/questions/44856214/how-to-add-new-dags-to-airflow
python, airflow
1,498,867,499
se_79431327
stackoverflow
DATA_ENGINEERING
TypeError: SSHHook.__init__() got an unexpected keyword argument 'host_proxy_cmd' while using SFTPToGCSOperator in airflow
TypeError: SSHHook.__init__() got an unexpected keyword argument 'host_proxy_cmd' while using SFTPToGCSOperator in airflow I'm currently working on transferring files from SFTP to Google Cloud using the SFTPToGCSOperator in Apache Airflow. I’ve set up a connection in the Airflow UI, and the credentials work pe...
https://stackoverflow.com/questions/79431327/typeerror-sshhook-init-got-an-unexpected-keyword-argument-host-proxy-cmd
airflow, file-copying
1,739,308,382
se_77077696
stackoverflow
DATA_ENGINEERING
Airflow in Docker: Unable to import an installed Python module
Airflow in Docker: Unable to import an installed Python module I'm new to both docker and airflow and I'm trying to create an airflow pipeline in docker on my windows desktop. I have used the latest airflow image and extended it to include some additional python libraries that are needed. All the libraries were instal...
https://stackoverflow.com/questions/77077696/airflow-in-docker-unable-to-import-an-installed-python-module
docker, docker-compose, airflow, polygon.io
1,694,375,898
se_79469804
stackoverflow
DATA_ENGINEERING
dependent tasks in different dags not triggering
dependent tasks in different dags not triggering I have two dags in which i want to trigger another task in a dag once the first one finishes. Parent dag: from airflow import DAG from datetime import datetime, timedelta from airflow.operators.dummy_operator import DummyOperator from airflow.operators.dagrun_operator i...
https://stackoverflow.com/questions/79469804/dependent-tasks-in-different-dags-not-triggering
airflow, airflow-2.x, airflow-webserver
1,740,574,465
se_77907253
stackoverflow
DATA_ENGINEERING
How to get rid of DeprecationWarning in Airflow?
How to get rid of DeprecationWarning in Airflow? I have downloaded airflow and every time I run a command from the CLI I get this warning: /python3.11/site-packages/airflow/cli/cli_config.py:971 DeprecationWarning: The namespace option in [kubernetes] has been moved to the namespace option in [kubernetes_executor] - t...
https://stackoverflow.com/questions/77907253/how-to-get-rid-of-deprecationwarning-in-airflow
python, airflow, airflow-2.x
1,706,626,394
se_79456565
stackoverflow
DATA_ENGINEERING
Trigger a DAG based on upstream DAG completion (unscheduled)
Trigger a DAG based on upstream DAG completion (unscheduled) I am trying to see if I can trigger a DAG (say B1) to run (daily) if an upstream DAG (say A1) complete's run. I am already aware about ExternalTaskSensor, but my limitation is that upstream DAG U1, is unscheduled i.e. schedule=None and A1 is triggered throu...
https://stackoverflow.com/questions/79456565/trigger-a-dag-based-on-upstream-dag-completion-unscheduled
python, airflow, airflow-2.x, astronomer
1,740,121,500
se_79475881
stackoverflow
DATA_ENGINEERING
How to correctly pair elements from two XCom lists in Airflow TriggerDagRunOperator.expand()?
How to correctly pair elements from two XCom lists in Airflow TriggerDagRunOperator.expand()? I am using Apache Airflow and trying to trigger multiple DAGs from within another DAG using TriggerDagRunOperator.expand(). I have two lists being returned from an upstream task via XCom: confs → A list of dictionaries contai...
https://stackoverflow.com/questions/79475881/how-to-correctly-pair-elements-from-two-xcom-lists-in-airflow-triggerdagrunopera
python, airflow
1,740,753,768
se_79456262
stackoverflow
DATA_ENGINEERING
Cannot find Oracle connection in Apache Airflow UI
Cannot find Oracle connection in Apache Airflow UI I am using Docker Compose to run Apache Airflow on Ubuntu 22.04. I downloaded the docker-compose.yaml file from the Airflow website(https://airflow.apache.org/docs/apache-airflow/2.10.5/docker-compose.yaml). The setup runs successfully, and I can access the Airflow UI...
https://stackoverflow.com/questions/79456262/cannot-find-oracle-connection-in-apache-airflow-ui
docker-compose, airflow, airflow-api
1,740,106,351
se_79476039
stackoverflow
DATA_ENGINEERING
Airflow - How to pass xcom variable into EventBridgePutEventsOperator
Airflow - How to pass xcom variable into EventBridgePutEventsOperator I am trying to pass a list of dictionaries to EventBridgePutEventsOperator but am getting Parameter validation failed: Invalid type for parameter Entries, value: [{...}], type: <class 'str'>, valid types: <class 'list'>, <class 'tuple' The problem s...
https://stackoverflow.com/questions/79476039/airflow-how-to-pass-xcom-variable-into-eventbridgeputeventsoperator
airflow, airflow-2.x
1,740,757,618
se_56321080
stackoverflow
DATA_ENGINEERING
How to have a mix of both Celery Executor and Kubernetes Executor in Apache Airflow?
How to have a mix of both Celery Executor and Kubernetes Executor in Apache Airflow? I have multiple dags using Celery Executor but I want one particular dag to run using Kubernetes Executor. I am unable to deduce a good and reliable way to achieve this. I have an airflow.cfg in which I have declared CeleryExecutor t...
https://stackoverflow.com/questions/56321080/how-to-have-a-mix-of-both-celery-executor-and-kubernetes-executor-in-apache-airf
python, python-3.x, kubernetes, celery, airflow
1,558,940,180
se_66052458
stackoverflow
DATA_ENGINEERING
How to run a shell script through apache airflow
How to run a shell script through apache airflow I am trying to run a shell script through airflow, the shell script works when I execute it locally. This is my Dag code: dag = DAG(dag_id='Phase1_dag_v1', default_args=args, schedule_interval=None) with dag: test= BashOperator( task_id='test', ...
https://stackoverflow.com/questions/66052458/how-to-run-a-shell-script-through-apache-airflow
bash, airflow
1,612,466,654
se_78299122
stackoverflow
DATA_ENGINEERING
ModuleNotFoundError: No module named &#39;airflow.providers.microsoft&#39; in Airflow v2.9.0
ModuleNotFoundError: No module named &#39;airflow.providers.microsoft&#39; in Airflow v2.9.0 I have been trying to update an airflow docker image from Airflow v2.2 (Python 3.9) to Airflow v2.9 (Python 3.11). After updating, I get the following errors when trying to run the docker container. ModuleNotFoundError: No mod...
https://stackoverflow.com/questions/78299122/modulenotfounderror-no-module-named-airflow-providers-microsoft-in-airflow-v2
python, azure, docker, airflow
1,712,672,227
se_78377629
stackoverflow
DATA_ENGINEERING
Airflow snowflake connection using private_key_content
Airflow snowflake connection using private_key_content I'm trying to connect my airflow dag to my snowflake using private_key_content. Connection: { conn_type: snowflake, host: <snowflake_host>, login: <snowflake_user>, password: null, schema: <snowflake_schema>, port: null, extra: { accoun...
https://stackoverflow.com/questions/78377629/airflow-snowflake-connection-using-private-key-content
snowflake-cloud-data-platform, airflow
1,713,953,607
se_61563883
stackoverflow
DATA_ENGINEERING
How to get Airflow user who manually trigger a DAG?
How to get Airflow user who manually trigger a DAG? In the Airflow UI, one of the log events available under "Browser > Logs" is the event "Trigger" along with the DAG ID and Owner/User who's responsible for triggering this event. Is this information easily obtainable programmatically? The use case is, I have a DAG ...
https://stackoverflow.com/questions/61563883/how-to-get-airflow-user-who-manually-trigger-a-dag
airflow-scheduler, airflow
1,588,441,928
se_79435945
stackoverflow
DATA_ENGINEERING
Google Cloud Composer - Missing &quot;Trigger DAG w/ config&quot; option?
Google Cloud Composer - Missing &quot;Trigger DAG w/ config&quot; option? I have been looking everywhere in Cloud Composer Airflow for the "Trigger DAG w/ config" option when executing a DAG but it seems like it's simply not available anywhere. Could anyone point me in the right direction as to where this option is or...
https://stackoverflow.com/questions/79435945/google-cloud-composer-missing-trigger-dag-w-config-option
google-cloud-platform, airflow, google-cloud-composer, airflow-2.x
1,739,444,964
se_79463598
stackoverflow
DATA_ENGINEERING
Create dockerfile to use airflow and spark, pip backtracking runtime issue comes out
Create dockerfile to use airflow and spark, pip backtracking runtime issue comes out I'm tring to build dockerfile to use airflow and spark as follows FROM apache/airflow:2.7.0-python3.9 ENV AIRFLOW_HOME=/opt/airflow USER root # Update the package list, install required packages, and clean up RUN apt-get update && ...
https://stackoverflow.com/questions/79463598/create-dockerfile-to-use-airflow-and-spark-pip-backtracking-runtime-issue-comes
python, docker, apache-spark, airflow, java-11
1,740,401,794
se_79451592
stackoverflow
DATA_ENGINEERING
Airflow DAG gets stuck when filtering a Polars DataFrame
Airflow DAG gets stuck when filtering a Polars DataFrame I am dynamically generating Airflow DAGs based on data from a Polars DataFrame. The DAG definition includes filtering this DataFrame at DAG creation time and again inside a task when the DAG runs. However, when I run the dag and I attempt to filter the polars da...
https://stackoverflow.com/questions/79451592/airflow-dag-gets-stuck-when-filtering-a-polars-dataframe
python, airflow, python-polars, polars
1,739,973,418
se_79452522
stackoverflow
DATA_ENGINEERING
Apache airflow vs temporal
Apache airflow vs temporal I want to create a system that automates virtual machines to do various different tasks. Every few minutes I want to trigger a workflow that powers up a vm, run a process inside, and shut it down. I’m considering two frameworks for such a system, temporal and Apache airflow. The workflows ch...
https://stackoverflow.com/questions/79452522/apache-airflow-vs-temporal
python, airflow, airflow-2.x, temporal
1,739,992,317
se_79420731
stackoverflow
DATA_ENGINEERING
DatabricksWorkflowTaskGroup and templated task parameters for spark_jar task
DatabricksWorkflowTaskGroup and templated task parameters for spark_jar task task_group = DatabricksWorkflowOperator( group_id="test", databricks_conn_id=dbx_conn_id, job_clusters=[ { "job_cluster_key": "cpu_cluster", "new_cluster": { ...
https://stackoverflow.com/questions/79420731/databricksworkflowtaskgroup-and-templated-task-parameters-for-spark-jar-task
airflow, databricks, azure-databricks
1,738,927,931
se_43631693
stackoverflow
DATA_ENGINEERING
How to stop/kill Airflow tasks from the UI
How to stop/kill Airflow tasks from the UI How can I stop/kill a running task on Airflow UI? I am using LocalExecutor. Even if I use CeleryExecutor, how do can I kill/stop the running task?
https://stackoverflow.com/questions/43631693/how-to-stop-kill-airflow-tasks-from-the-ui
python, hadoop, airflow
1,493,202,808
se_79436631
stackoverflow
DATA_ENGINEERING
404 Not found: Table airflow-project-446808:retail.raw_invoices was not found in location US;
404 Not found: Table airflow-project-446808:retail.raw_invoices was not found in location US; I am trying to run dbt transforms in Airflow, my table raw_invoices is already created in US location. still I am getting below error in Airflow. -- dim_customer.sql --Create the dimension table WITH customer_cte AS ( SELE...
https://stackoverflow.com/questions/79436631/404-not-found-table-airflow-project-446808retail-raw-invoices-was-not-found-in
google-cloud-platform, google-bigquery, airflow, dbt
1,739,459,050
se_79444449
stackoverflow
DATA_ENGINEERING
Why are my local code changes not reflected in Airflow using Breeze?
Why are my local code changes not reflected in Airflow using Breeze? I am trying to develop a new feature for Airflow and want to use Breeze for testing. I made changes to a file in my local repository (tests/sensors/test_filesystem.py) but when I open Breeze and check the file, I can't see my modifications. Question:...
https://stackoverflow.com/questions/79444449/why-are-my-local-code-changes-not-reflected-in-airflow-using-breeze
docker, airflow, breeze
1,739,768,498
se_79341795
stackoverflow
DATA_ENGINEERING
Airflow: DAG Import Error for deleted file
Airflow: DAG Import Error for deleted file I have Airflow (v2.10.4) deployed on k8s, with the git-sync sidecar, which populates the dags PVC. After doing some refactoring of the DAGs, the Airflow UI reports 1 DAG Import Error: Broken DAG: [/opt/airflow/dags/repo/dags/utils/callbacks.py] Traceback (most recent call las...
https://stackoverflow.com/questions/79341795/airflow-dag-import-error-for-deleted-file
airflow
1,736,409,699
se_79399733
stackoverflow
DATA_ENGINEERING
How to authenticate to Cloud Composer Airflow REST API
How to authenticate to Cloud Composer Airflow REST API I try to authenticate an HTTP call to the Cloud Composer Airflow REST API from a Cloud Run service in a different project. I want to programmatically trigger a DAG run. I don't understand how to do it. The documentation is not clear about how to forge the request....
https://stackoverflow.com/questions/79399733/how-to-authenticate-to-cloud-composer-airflow-rest-api
airflow, google-cloud-composer
1,738,236,286
se_70768281
stackoverflow
DATA_ENGINEERING
Airflow DAG Dependencies / Orchestration between different workflows
Airflow DAG Dependencies / Orchestration between different workflows My team is working orchestrating our data pipeline with Airflow. Since our pipeline steps are complex, we were thinking about having different DAGs / workflows, each defined on its own file. Each of the workflows can trigger more than one downstream ...
https://stackoverflow.com/questions/70768281/airflow-dag-dependencies-orchestration-between-different-workflows
airflow, airflow-scheduler, airflow-2.x, mwaa
1,642,585,196
se_79433699
stackoverflow
DATA_ENGINEERING
Cloud Composer/Airflow Loggin — Line breaks as /n
Cloud Composer/Airflow Loggin — Line breaks as /n We've recently upgraded GCP's Cloud Composer to version 3 and Airflow to version 2.10.2-build.5. After this change, all the logs that previously were multi-line, are now all in a single line with \n instead of a real line break. Example: INFO - \n print: This is...
https://stackoverflow.com/questions/79433699/cloud-composer-airflow-loggin-line-breaks-as-n
logging, airflow, google-cloud-composer
1,739,375,921
se_67348454
stackoverflow
DATA_ENGINEERING
Why does airflow&#39;s `last run` date not actually show the last run date?
Why does airflow&#39;s `last run` date not actually show the last run date? In the dags listing \admin I see my dag and the last run column shows 2021-04-30 19:31 which is a run I triggered manually. But going to /admin/taskinstance/ it shows it actually ran on schedule at 2021-05-01 03:50 (according to the docs I exp...
https://stackoverflow.com/questions/67348454/why-does-airflows-last-run-date-not-actually-show-the-last-run-date
airflow
1,619,886,343
se_79428453
stackoverflow
DATA_ENGINEERING
Airflow Dependencies with ExternalTaskSensor
Airflow Dependencies with ExternalTaskSensor I am using Airflow 2.8... What do I need to do to get DAG dependencies to work using ExternalTaskSensor? I tried some of the suggestions I saw in other posts regarding execution_delta, but still it is not working. I assume I should be able to start dag2 in the example below...
https://stackoverflow.com/questions/79428453/airflow-dependencies-with-externaltasksensor
airflow
1,739,226,113
se_77368935
stackoverflow
DATA_ENGINEERING
How to pass CSV file between Airflow tasks
How to pass CSV file between Airflow tasks I have this code (it's working) and I want to break it down to 2 functions (Airflow tasks). Pull Json file and parse it to CSV Upload CSV to S3 bucket. I can't pass the CSV file between the Airflow tasks (dags) I tried xcom push and pull but I'm missing something. I know it...
https://stackoverflow.com/questions/77368935/how-to-pass-csv-file-between-airflow-tasks
python, firebase, csv, airflow
1,698,338,805
se_79422249
stackoverflow
DATA_ENGINEERING
How Can I assign schedule_interval dynamically to an Airflow DAG
How Can I assign schedule_interval dynamically to an Airflow DAG I am creating the dag dynamically using the metadata that is stored in table. I am reading the table and creating a dictionary that looks like below. This is sample data and The table has other columns as well. metadata = [ {'source_system': 'src1', ...
https://stackoverflow.com/questions/79422249/how-can-i-assign-schedule-interval-dynamically-to-an-airflow-dag
airflow, global, astronomer
1,738,965,547