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_71947290 | stackoverflow | DATA_ENGINEERING | Is there a way to parse DAG files locally in Airflow? | Is there a way to parse DAG files locally in Airflow?
I would like to parse a DAG file locally. Is there a way to parse DAG files locally instead of waiting for the scheduler to catch it?
Reading this: https://airflow.apache.org/docs/apache-airflow/stable/dag-serialization.html seems like it gets parsed when the Sched... | https://stackoverflow.com/questions/71947290/is-there-a-way-to-parse-dag-files-locally-in-airflow | airflow | 1,650,498,021 |
se_79419335 | stackoverflow | DATA_ENGINEERING | Trigger scripts on Cloudera CDP using MWAA | Trigger scripts on Cloudera CDP using MWAA
I need to run scripts on Cloudera CDP. This needs to be done via MWAA(Managed Workspace for Apache Airflow) on AWS. Here are the details regarding MWAA environment:
Airflow version 2.10.1
Python Version 3.11
Private Webserver
Connected to VPC
Library used: apache-airflow-pro... | https://stackoverflow.com/questions/79419335/trigger-scripts-on-cloudera-cdp-using-mwaa | airflow, amazon-vpc, requirements.txt, mwaa, cloudera-cdp | 1,738,875,607 |
se_79418066 | stackoverflow | DATA_ENGINEERING | DAG's from DAG Folder is not visible in Airflow Home DAG (localhost:8080) | DAG's from DAG Folder is not visible in Airflow Home DAG (localhost:8080)
I have 3 Dag files (example1.py, example2.py and example3.py) in DAG folder in airflow/airflow-docker/dags folder (docker container in vscode) and they're not showing up in the Airflow Web Home Page, It's showing as 'no results' in the homep... | https://stackoverflow.com/questions/79418066/dags-from-dag-folder-is-not-visible-in-airflow-home-dag-localhost8080 | python, docker, visual-studio-code, docker-compose, airflow | 1,738,847,930 |
se_58593247 | stackoverflow | DATA_ENGINEERING | How can one use HashiCorp Vault in Airflow? | How can one use HashiCorp Vault in Airflow?
I am starting to use Apache Airflow and I am wondering how to effectively make it use secrets and passwords stored in Vault. Unfortunately, search does not return meaningful answers beyond a yet-to-be-implemented hook in Airflow project itself.
I can always use Python's hv... | https://stackoverflow.com/questions/58593247/how-can-one-use-hashicorp-vault-in-airflow | python, python-3.x, airflow, hashicorp-vault | 1,572,274,621 |
se_76881884 | stackoverflow | DATA_ENGINEERING | Error in airflow installation. Failed at building wheel for google-re2 & greenlet (setup.py) | Error in airflow installation. Failed at building wheel for google-re2 & greenlet (setup.py)
When I follow the official documentation from Apache Airflow to pip3 install Airflow using the constraints file:
https://airflow.apache.org/docs/apache-airflow/stable/start.html
I got the error message. The main part of th... | https://stackoverflow.com/questions/76881884/error-in-airflow-installation-failed-at-building-wheel-for-google-re2-greenle | python, airflow | 1,691,742,703 |
se_45534535 | stackoverflow | DATA_ENGINEERING | Airflow not loading dags in /usr/local/airflow/dags | Airflow not loading dags in /usr/local/airflow/dags
Airflow seems to be skipping the dags I added to /usr/local/airflow/dags.
When I run
airflow list_dags
The output shows
[2017-08-06 17:03:47,220] {models.py:168} INFO - Filling up the DagBag from /usr/local/airflow/dags
----------------------------------------... | https://stackoverflow.com/questions/45534535/airflow-not-loading-dags-in-usr-local-airflow-dags | airflow | 1,502,039,409 |
se_79397752 | stackoverflow | DATA_ENGINEERING | Dynamic Task Sequencing in Airflow via Dag Run Conf | Dynamic Task Sequencing in Airflow via Dag Run Conf
I have the following airflow dag
I am able to define the dependencies correctly in the dag above because I have hardcoded the elements list (mentioned in the code snippet). But suppose I want the elements list to be taken from airflow dag run configuration (at runti... | https://stackoverflow.com/questions/79397752/dynamic-task-sequencing-in-airflow-via-dag-run-conf | python, airflow, directed-acyclic-graphs | 1,738,174,174 |
se_79333690 | stackoverflow | DATA_ENGINEERING | Expanded task group with BashOperator in Airflow | Expanded task group with BashOperator in Airflow
I have this simplified DAG below that reads a text file, get a number of ids and expand a task group to perform a set of operations for each id. This example works fine using task decorators. However in my production environment I will need to use some custom operators.... | https://stackoverflow.com/questions/79333690/expanded-task-group-with-bashoperator-in-airflow | airflow | 1,736,180,759 |
se_79409541 | stackoverflow | DATA_ENGINEERING | Airflow not importing modules | Airflow not importing modules
I've recently upgraded Airflow on my UBUNTU machine that is running in a dedicated conda, miniforge environment from 2.3.0 to 2.10.4. Most of my DAGs now have stopped running because Airflow is not capable of importing modules even though the packages exist in the conda environment. I'm r... | https://stackoverflow.com/questions/79409541/airflow-not-importing-modules | python, airflow, conda, mini-forge | 1,738,602,984 |
se_49902599 | stackoverflow | DATA_ENGINEERING | Airflow latency between tasks | Airflow latency between tasks
As you can see in the image : airflow is making too much time between tasks execution ?
it almost represents 30% of the DAG execution time.
I've changed the airflow.cfg file to:
job_heartbeat_sec = 1
scheduler_heartbeat_sec = 1
but I still have the same latency rate.
Why does it be... | https://stackoverflow.com/questions/49902599/airflow-latency-between-tasks | python, airflow, directed-acyclic-graphs, airflow-scheduler | 1,524,062,442 |
se_79393016 | stackoverflow | DATA_ENGINEERING | pyspark statistical window function keeps calculating NULL values | pyspark statistical window function keeps calculating NULL values
Here is my table showing all the columns. What I want to basically happen is to be able to take the closing_price column and calculate a at least the moving standard deviation of about 7 days
+------+---------------+-------------+-------------+---------... | https://stackoverflow.com/questions/79393016/pyspark-statistical-window-function-keeps-calculating-null-values | python, sql, pyspark, airflow, data-engineering | 1,738,049,132 |
se_68979485 | stackoverflow | DATA_ENGINEERING | Timeout error invoke lambda function in airflow | Timeout error invoke lambda function in airflow
I have a question regarding AWS lambda(seoul region) invokation from Airflow(Amazon Managed Workflows for Apache Airflow in tokyo region).
The problem is when I invoke a Lambda function from Airflow, the Airflow UI says the function failed.
The weird thing is when I chec... | https://stackoverflow.com/questions/68979485/timeout-error-invoke-lambda-function-in-airflow | amazon-web-services, aws-lambda, airflow, mwaa | 1,630,303,035 |
se_58555512 | stackoverflow | DATA_ENGINEERING | Long running lambda wait for response times out in Airflow | Long running lambda wait for response times out in Airflow
We invoke certain lambdas via an Airflow operator. In the operator, a call to lambda.invoke in the boto3 library is made (via the AwsLambdaHook).
However, one of the lambdas has a long running time (10-15 mins). Initially the operator received a boto3 timeout... | https://stackoverflow.com/questions/58555512/long-running-lambda-wait-for-response-times-out-in-airflow | aws-lambda, boto3, airflow | 1,571,994,672 |
se_79402411 | stackoverflow | DATA_ENGINEERING | Airflow - custom menu not displaying in UI after upgrade | Airflow - custom menu not displaying in UI after upgrade
Airflow - custom menu not displaying in UI after upgrade
Version upgraded to 2.10.2 from 1.9.
Airflow - custom menu not displaying in UI after upgrade.
Using postgreSQL as DB.
Python 3.9 version..
After
Upgrade was done and unable to see custom menu which we hav... | https://stackoverflow.com/questions/79402411/airflow-custom-menu-not-displaying-in-ui-after-upgrade | python, airflow | 1,738,318,370 |
se_79401075 | stackoverflow | DATA_ENGINEERING | Enviroment variable with brackets in Linux? | Enviroment variable with brackets in Linux?
I try to understand this following example in the brackets.
AIRFLOW_PROJ_DIR
is an enviroment variable which will be called by the $ symbol outside of the bracket. But I have problems to understand the part after the enviroment variable. What is the meaning of these inside... | https://stackoverflow.com/questions/79401075/enviroment-variable-with-brackets-in-linux | bash, docker, shell, airflow, parameter-expansion | 1,738,266,814 |
se_74097662 | stackoverflow | DATA_ENGINEERING | Airflow Dynamic Task Mapping identifiers in UI | Airflow Dynamic Task Mapping identifiers in UI
With the new Dynamic Task Mapping feature, it's possible to use the expand function and create a variable number of tasks based on the output of a previous task.
The problem is that, as shown in the documentation, the UI will only show the total number of tasks generated,... | https://stackoverflow.com/questions/74097662/airflow-dynamic-task-mapping-identifiers-in-ui | airflow, airflow-2.x | 1,666,011,381 |
se_79397733 | stackoverflow | DATA_ENGINEERING | There is no button “Trigger DAG w/ config” | There is no button “Trigger DAG w/ config”
I am using MWAA local (2_10_3),unable to see the UI with Trigger Dag with config.
Do I have to change any configuration.
How to pass the input config?
3.I have used https://github.com/aws/aws-mwaa-local-runner to set up the container.
4.Is there any other way to pass inputs ... | https://stackoverflow.com/questions/79397733/there-is-no-button-trigger-dag-w-config | airflow, aws-airflow-mwaa | 1,738,173,694 |
se_78797598 | stackoverflow | DATA_ENGINEERING | GKEStarPodOperator/Kubectl API: Error 500 "No agent available" | GKEStarPodOperator/Kubectl API: Error 500 "No agent available"
try to launch operator GKEStartPodOperator, to launch a simple test again GKE cluster in GCP.
Using service account with these roles:
Kubernetes Engine Admin
Kubernetes Engine Developer
Kubernetes Engine Host Service Agent User
Kubernetes Engine ... | https://stackoverflow.com/questions/78797598/gkestarpodoperator-kubectl-api-error-500-no-agent-available | kubernetes, airflow, google-kubernetes-engine, kubernetes-apiserver, kubernetespodoperator | 1,721,990,542 |
se_75347380 | stackoverflow | DATA_ENGINEERING | Can not connect to Redshift from Airflow - ConnectionRefusedError | Can not connect to Redshift from Airflow - ConnectionRefusedError
I am trying to create a connection to AWS Redshift from the Airflow Web UI, but so far it does not work. I always get the error: ('communication error', ConnectionRefusedError(111, 'Connection refused').
My Redshift is in a subnet of a VPC, but I have a... | https://stackoverflow.com/questions/75347380/can-not-connect-to-redshift-from-airflow-connectionrefusederror | amazon-web-services, airflow, amazon-redshift, amazon-vpc | 1,675,535,277 |
se_79382350 | stackoverflow | DATA_ENGINEERING | How can I make a task dependent on another, but also only run at a certain time? | How can I make a task dependent on another, but also only run at a certain time?
I have two tasks.
T05:30 - I wish for this to run at 05:30 every day.
T08:30 - I wish for this to run at 08:30 every day, but only if T05:30 has succeeded today.
Can this be achieved in Airflow? It appears that dependencies (i.e. run T8... | https://stackoverflow.com/questions/79382350/how-can-i-make-a-task-dependent-on-another-but-also-only-run-at-a-certain-time | python, airflow, task, scheduled-tasks, directed-acyclic-graphs | 1,737,660,605 |
se_51594947 | stackoverflow | DATA_ENGINEERING | psycopg2 could not translate host name | psycopg2 could not translate host name
My airflow server periodically fails. When I check the gunicorn logs, the error before all works shutting down looks like this:
OperationalError: (psycopg2.OperationalError) could not translate host name "my-airflow-db.l9zijaslosu.us-east-1.rds.amazonaws.com" to address: Name or ... | https://stackoverflow.com/questions/51594947/psycopg2-could-not-translate-host-name | airflow, gunicorn, psycopg2 | 1,532,956,861 |
se_78115421 | stackoverflow | DATA_ENGINEERING | Airflow - Distribute flow execution on multiple workers | Airflow - Distribute flow execution on multiple workers
I have a DAG that looks like this:
with DAG(
dag_id=DAG_ID,
schedule_interval='@once',
default_args=default_args,
) as dag:
def function_1(value):
return value+1
def function_2(value):
return value+2
... | https://stackoverflow.com/questions/78115421/airflow-distribute-flow-execution-on-multiple-workers | airflow, google-cloud-composer | 1,709,737,418 |
se_79366413 | stackoverflow | DATA_ENGINEERING | Attempting to Trigger DAGS using API Key | Attempting to Trigger DAGS using API Key
I am running Apache Airflow Version 2.10.4.
I want to set up a DAG to receive data from a webhook from Dialpad.
I can get the DAG to run with a curl command.
curl -X POST "https://Server/api/v1/dags/DagInQuestion/dagRuns" \
--user "UserName:Password"
-H "Content-Type: a... | https://stackoverflow.com/questions/79366413/attempting-to-trigger-dags-using-api-key | python-3.x, airflow, airflow-webserver | 1,737,161,691 |
se_79381506 | stackoverflow | DATA_ENGINEERING | ConnectionTimeoutError inside Cloud Compsoser/Airflow when connecting to Iconik API | ConnectionTimeoutError inside Cloud Compsoser/Airflow when connecting to Iconik API
The API that I'm trying to connect is Iconik API which is a REST API and has a limit of 50 requests per second sustained or 1000 requests over any 20 second period. I set up an asynchronous static method called _perform_api_request to ... | https://stackoverflow.com/questions/79381506/connectiontimeouterror-inside-cloud-compsoser-airflow-when-connecting-to-iconik | python-3.x, rest, google-cloud-platform, async-await, airflow | 1,737,643,285 |
se_79378285 | stackoverflow | DATA_ENGINEERING | Apache Airflow Python DAG script does not pull latest config from HC Vault | Apache Airflow Python DAG script does not pull latest config from HC Vault
I have below sample Python DAG script for Apache Airflow. It is meant for producing messages to two Kafka topics. The Kafka credentials are kept in HC Vault and every time the script runs, it is supposed to fetch latest credential set from Vaul... | https://stackoverflow.com/questions/79378285/apache-airflow-python-dag-script-does-not-pull-latest-config-from-hc-vault | python, apache-kafka, airflow, directed-acyclic-graphs | 1,737,558,718 |
se_79377472 | stackoverflow | DATA_ENGINEERING | Copying 100+ Files from Azure ADLS via Airflow to GCS | Copying 100+ Files from Azure ADLS via Airflow to GCS
We are using AzureBlobStorageToGCSOperator to copy file from Azure ADLS to GCS. This is working fine for 1 file. But for 100+ files, if we add wildcard character its failing due to blob not found.
If there is another way to copy files to GCS from ADLS, please help. | https://stackoverflow.com/questions/79377472/copying-100-files-from-azure-adls-via-airflow-to-gcs | azure, google-cloud-storage, airflow | 1,737,544,114 |
se_79351808 | stackoverflow | DATA_ENGINEERING | Can't migrate SQL Server backend to Airflow version 2.10.0 | Can't migrate SQL Server backend to Airflow version 2.10.0
I'm trying to upgrade my instance of Airflow to last version (2.10.4) from version 2.7.0, but the airflow db migrate command fails with the following error:
sqlalchemy.exc.ProgrammingError: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driv... | https://stackoverflow.com/questions/79351808/cant-migrate-sql-server-backend-to-airflow-version-2-10-0 | sql-server, sqlalchemy, airflow, airflow-2.x | 1,736,762,733 |
se_69632498 | stackoverflow | DATA_ENGINEERING | Airflow retry of multiple tasks as a group | Airflow retry of multiple tasks as a group
I have a group of tasks that should run as a unit, in the sense if any of the tasks from the group fail, the whole group should be marked as failed.
I want to be able to retry the group when it has failed.
For example, I have a DAG with these tasks:
taskA >> (taskB >> taskC) ... | https://stackoverflow.com/questions/69632498/airflow-retry-of-multiple-tasks-as-a-group | airflow, airflow-2.x | 1,634,652,870 |
se_79374588 | stackoverflow | DATA_ENGINEERING | airflow: retry the whole task group when a task retries in that group | airflow: retry the whole task group when a task retries in that group
Context: I've a custom inhouse task group - TG which is used in multiple DAGs. This task group has multiple tasks say A, B, C, D. Now task D for some unforeseen reasons retries due to some failure.
My requirement is instead of just D retrying, I wan... | https://stackoverflow.com/questions/79374588/airflow-retry-the-whole-task-group-when-a-task-retries-in-that-group | airflow, airflow-2.x | 1,737,465,897 |
se_78022273 | stackoverflow | DATA_ENGINEERING | Error rendering Jinja template for Airflow task using BigQueryOperator with SQL file containing template fields | Error rendering Jinja template for Airflow task using BigQueryOperator with SQL file containing template fields
I'm encountering an issue with an Airflow DAG task utilizing the BigQueryOperator. The task involves executing a SQL file (cast.sql) stored at "/home/airflow/gcs/dags/movies/sql/RRR/", and I'm passing parame... | https://stackoverflow.com/questions/78022273/error-rendering-jinja-template-for-airflow-task-using-bigqueryoperator-with-sql | airflow, google-cloud-composer, airflow-2.x, google-cloud-storage | 1,708,361,407 |
se_79335286 | stackoverflow | DATA_ENGINEERING | How to make a DAG fail when we are raising exception in our python code? | How to make a DAG fail when we are raising exception in our python code?
I am new to Airflow DAGs. I have a python script to fetch API calls. I have added a raise Exception in my code, if all API calls failed i.e. status_code!=200, then it should raise exception. However, in airflow logs, it is shown as INFO - [base] ... | https://stackoverflow.com/questions/79335286/how-to-make-a-dag-fail-when-we-are-raising-exception-in-our-python-code | python, airflow, directed-acyclic-graphs, raise, airflow-taskflow | 1,736,237,815 |
se_76929913 | stackoverflow | DATA_ENGINEERING | postgresql-ha "unable to connect to upstream node" randomly, causing pgpool "kind does not match between main(0) slot[0] (52)" | postgresql-ha "unable to connect to upstream node" randomly, causing pgpool "kind does not match between main(0) slot[0] (52)"
Environment: kubernetes with istio sidecars injected.
I'm using bitnami/postgresql-ha as a database for my airflow, and randomly seeing the below log in my postgresql state... | https://stackoverflow.com/questions/76929913/postgresql-ha-unable-to-connect-to-upstream-node-randomly-causing-pgpool-kin | postgresql, kubernetes, airflow, pgpool, repmgr | 1,692,366,106 |
se_79370607 | stackoverflow | DATA_ENGINEERING | (Errno 13) Permission denied when initialising selenium chromedriver in airflow task | (Errno 13) Permission denied when initialising selenium chromedriver in airflow task
I'm encountering a PermissionError: [Errno 13] Permission denied when trying to initialize a Selenium ChromeDriver in an Airflow task (using docker). The error occurs specifically when the script attempts to patch the ChromeDriver exe... | https://stackoverflow.com/questions/79370607/errno-13-permission-denied-when-initialising-selenium-chromedriver-in-airflow | linux, selenium-webdriver, selenium-chromedriver, airflow, undetected-chromedriver | 1,737,359,724 |
se_54733456 | stackoverflow | DATA_ENGINEERING | Airflow UI loading extremely slow after upgrading version | Airflow UI loading extremely slow after upgrading version
I upgraded my airflow cluster from 1.7.1.3 to 1.10.1. After the upgradation the main page UI of airflow is loading very slowly. I tried reducing the page size and increasing the workers for the webserver but that didn't help. I am using the following configs - ... | https://stackoverflow.com/questions/54733456/airflow-ui-loading-extremely-slow-after-upgrading-version | airflow | 1,550,408,081 |
se_79358186 | stackoverflow | DATA_ENGINEERING | Airflow ran locally no longer picks up dags from the dags folder | Airflow ran locally no longer picks up dags from the dags folder
Okay, I had Airflow running locally, and it worked fine. I then deployed it to Heroku and got it working after much tweaking and installing a new version of Airflow. Now, Airflow is running in my local environment but is no longer picking up my DAGs. Why... | https://stackoverflow.com/questions/79358186/airflow-ran-locally-no-longer-picks-up-dags-from-the-dags-folder | airflow | 1,736,943,627 |
se_79345261 | stackoverflow | DATA_ENGINEERING | Airflow: do not start tasks in DAG1, while DAG2 unfinished | Airflow: do not start tasks in DAG1, while DAG2 unfinished
I have DAG1 and DAG2.
There are tasks in DAG1: t11 >> t12.
Tasks in DAG2: t21 >> t22.
The settings are such that only one task can be executed at a time.
I want tasks in each DAG to run only after the other DAG is finished.
In practice, for example, t11 can st... | https://stackoverflow.com/questions/79345261/airflow-do-not-start-tasks-in-dag1-while-dag2-unfinished | python, airflow, airflow-2.x, airflow-taskflow | 1,736,502,551 |
se_79360225 | stackoverflow | DATA_ENGINEERING | How do I kill SSHOperator task on airflow when task fails? | How do I kill SSHOperator task on airflow when task fails?
I have two SSHOperator task that calls up a shell script on airflow that runs concurrently. I'd imagine if either task fails, both task will be set to fail but the other will just keep going indefinitely. How do I kill SSHOperator if either fails?
I have a set... | https://stackoverflow.com/questions/79360225/how-do-i-kill-sshoperator-task-on-airflow-when-task-fails | ssh, airflow, cloud | 1,736,994,985 |
se_79359053 | stackoverflow | DATA_ENGINEERING | Can I progamatically retrieve the rendered template? | Can I progamatically retrieve the rendered template?
Recently a refactoring operation was made to one of our DAGs, lots of the code was extracted into a shareable module. A true refactor shouldn't change the behaviour of the DAG but unfortunately a mistake was made and the behaviour did change, and it ultimately cause... | https://stackoverflow.com/questions/79359053/can-i-progamatically-retrieve-the-rendered-template | airflow | 1,736,959,543 |
se_79358073 | stackoverflow | DATA_ENGINEERING | running engine: engine linux/qemu failed to run: running VM: running virtiofsd for /home: signal: bad system call (core dumped) | running engine: engine linux/qemu failed to run: running VM: running virtiofsd for /home: signal: bad system call (core dumped)
I am using Ubuntu 22.0 and Oracle VM Box. when I tried to run docker the docker Engine stop.
docker version: Docker version 27.5.0, build a187fa5
I want to run astro CLI and airflow but my do... | https://stackoverflow.com/questions/79358073/running-engine-engine-linux-qemu-failed-to-run-running-vm-running-virtiofsd-f | docker, airflow | 1,736,941,032 |
se_79356528 | stackoverflow | DATA_ENGINEERING | Airflow DAG with multiple dynamic SQLExecuteQueryOperator tasks keeps breaking silently | Airflow DAG with multiple dynamic SQLExecuteQueryOperator tasks keeps breaking silently
I'm trying to move a CSV file into a MariaDB database. To do this, I wrote the following DAG.
When I run this through the Airflow UI, it works fine.
But then the DAG disappear from the list, and I don't know why.
Is there something... | https://stackoverflow.com/questions/79356528/airflow-dag-with-multiple-dynamic-sqlexecutequeryoperator-tasks-keeps-breaking-s | python, airflow | 1,736,892,792 |
se_79354955 | stackoverflow | DATA_ENGINEERING | How can I define a connection ID during DAG execution for a PostgresOperator? | How can I define a connection ID during DAG execution for a PostgresOperator?
I am using "Setup and Teardown" from Airflow to setup a temporary Database.
My first Operator is a BashOperator that start a PosGreSQL container. I need to get that container IP back from the BashOperator to use it in the Connection object f... | https://stackoverflow.com/questions/79354955/how-can-i-define-a-connection-id-during-dag-execution-for-a-postgresoperator | airflow, airflow-xcom | 1,736,856,846 |
se_39133376 | stackoverflow | DATA_ENGINEERING | Airflow dynamic DAG and Task Ids | Airflow dynamic DAG and Task Ids
I mostly see Airflow being used for ETL/Bid data related jobs. I'm trying to use it for business workflows wherein a user action triggers a set of dependent tasks in future. Some of these tasks may need to be cleared (deleted) based on certain other user actions.
I thought the best way... | https://stackoverflow.com/questions/39133376/airflow-dynamic-dag-and-task-ids | airflow | 1,472,074,446 |
se_79353916 | stackoverflow | DATA_ENGINEERING | How to load common dependencies into dataflow? | How to load common dependencies into dataflow?
Our team has a set of data pipelines built as DAGs triggered on Composer (Airflow) that run Beam (Dataflow) jobs.
Across these dataflow pipelines, there are a set of common utilities engineers need to share which I have written. My understanding is that one way to achieve... | https://stackoverflow.com/questions/79353916/how-to-load-common-dependencies-into-dataflow | google-cloud-platform, airflow, google-cloud-dataflow, apache-beam, google-cloud-composer | 1,736,825,046 |
se_79353809 | stackoverflow | DATA_ENGINEERING | Why is Docker Swarm Operator inspecting a container at the end of the dag run? | Why is Docker Swarm Operator inspecting a container at the end of the dag run?
My setup is so:
I have a 3 node cluster with one manager and two workers. My manager is configured to expose the API on port 2375 which I pass to the docker_swarm_operator as a parameter. At the end of the dag run
import datetime
from airf... | https://stackoverflow.com/questions/79353809/why-is-docker-swarm-operator-inspecting-a-container-at-the-end-of-the-dag-run | docker, airflow, docker-swarm | 1,736,818,951 |
se_79347376 | stackoverflow | DATA_ENGINEERING | How to set up email functionality in apache airflow using docer-compose.yaml file | How to set up email functionality in apache airflow using docer-compose.yaml file
I am trying to set up my Apache Airflow to be able to send emails using the EmailOperator, but I am unable to get it to work. My airflow is set up using docker and I do not have access to an airflow.cfg file.
I am using a company SMTP se... | https://stackoverflow.com/questions/79347376/how-to-set-up-email-functionality-in-apache-airflow-using-docer-compose-yaml-fil | airflow | 1,736,560,340 |
se_79345994 | stackoverflow | DATA_ENGINEERING | How to run a task for specific time? | How to run a task for specific time?
I am creating a DAG in Airflow, and within this DAG, I need to trigger another DAG using a TimeSensor. The goal is to set the target time to between 2:00 AM 3:00 AM, and if the Timesensor is triggered after 2:00 AM, it should wait until the next day's 2:00 AM. However, I am encount... | https://stackoverflow.com/questions/79345994/how-to-run-a-task-for-specific-time | python, airflow | 1,736,518,747 |
se_79345801 | stackoverflow | DATA_ENGINEERING | Typing issue using a taskgroup in a taskflow-based dag | Typing issue using a taskgroup in a taskflow-based dag
I'm trying to improve the readability of my dags using taskgroups.
I also rely on the taskflow syntax, and the ability to map function parameters / return values to xcom automatically.
Also also :) I'm a mypy / pyright user, and I try to keep the source code of my... | https://stackoverflow.com/questions/79345801/typing-issue-using-a-taskgroup-in-a-taskflow-based-dag | python, airflow, python-typing | 1,736,514,515 |
se_79302723 | stackoverflow | DATA_ENGINEERING | AirflowException("Waiter error: max attempts reached") | AirflowException("Waiter error: max attempts reached")
I am using AWS MWAA with airflow version apache-airflow 2.8.1.
I am getting this error:
File "/usr/local/airflow/.local/lib/python3.11/site-packages/airflow/providers/amazon/aws/utils/waiter_with_logging.py", line 82, in wait raise AirflowException("Wai... | https://stackoverflow.com/questions/79302723/airflowexceptionwaiter-error-max-attempts-reached | amazon-web-services, airflow, mwaa | 1,734,947,373 |
se_43678408 | stackoverflow | DATA_ENGINEERING | How to create a conditional task in Airflow | How to create a conditional task in Airflow
I would like to create a conditional task in Airflow as described in the schema below. The expected scenario is the following:
Task 1 executes
If Task 1 succeed, then execute Task 2a
Else If Task 1 fails, then execute Task 2b
Finally execute Task 3
All tasks above are S... | https://stackoverflow.com/questions/43678408/how-to-create-a-conditional-task-in-airflow | python, conditional-statements, airflow | 1,493,376,572 |
se_79140729 | stackoverflow | DATA_ENGINEERING | Dynamic Task Mapping for http operator and query string | Dynamic Task Mapping for http operator and query string
Let's say that I have the following (simplified) dag: I have a task that returns a series of query parameters values, and I want to spawn a dynamic task instance of httpoperator to do a query like http://example.com?key=value1, http://example.com?key=value2, etc.... | https://stackoverflow.com/questions/79140729/dynamic-task-mapping-for-http-operator-and-query-string | airflow, airflow-taskflow | 1,730,285,064 |
se_71322702 | stackoverflow | DATA_ENGINEERING | Airflow - Dynamic Tasks and Downstream Dependencies | Airflow - Dynamic Tasks and Downstream Dependencies
I inherited the following dag which is running on AWS MWAA v2.2.2
from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.utils.dates import days_ago
from airflow.providers.snowflake.operators.snowflake import SnowflakeOperator... | https://stackoverflow.com/questions/71322702/airflow-dynamic-tasks-and-downstream-dependencies | airflow, airflow-2.x | 1,646,224,056 |
se_78697004 | stackoverflow | DATA_ENGINEERING | MongoDB missing from Apache Airflow Connections | MongoDB missing from Apache Airflow Connections
MongoDB itself is installed on system with all dependencies, everything is uptodate as well. still not getting this.
Running Apache-Airflow on Docker.
Dags Files are also giving error of module not found, but in reality all modules are installed and updated. | https://stackoverflow.com/questions/78697004/mongodb-missing-from-apache-airflow-connections | airflow | 1,719,922,754 |
se_72248154 | stackoverflow | DATA_ENGINEERING | How to edit airflow.cfg before running airflow db init? | How to edit airflow.cfg before running airflow db init?
When setting up Airflow, do I have to run airflow db init twice?
Once with the default settings (SQL Lite etc.) in airflow.cfg
Second time with my changes in airflow.cfg
It seems to cause errors when starting the services (webserver and scheduler).
I set up AIR... | https://stackoverflow.com/questions/72248154/how-to-edit-airflow-cfg-before-running-airflow-db-init | airflow | 1,652,616,785 |
se_74450282 | stackoverflow | DATA_ENGINEERING | How to Write a DAG with Multiple Similar Tasks | How to Write a DAG with Multiple Similar Tasks
I'm trying to move data from 50 tables in Postgres to BigQuery via Airflow. Each table follows the same 4 operations, just on different data:
get_latest_timestamp >> copy_data_to_bigquery >> verify_bigquery_data >> delete_postgres_data
What's the cleanest way to repeat t... | https://stackoverflow.com/questions/74450282/how-to-write-a-dag-with-multiple-similar-tasks | airflow, airflow-2.x | 1,668,535,411 |
se_78933864 | stackoverflow | DATA_ENGINEERING | How do I configure Airflow's Helm Chart to Authenticate Git-Sync with a Gitlab Access Token? | How do I configure Airflow's Helm Chart to Authenticate Git-Sync with a Gitlab Access Token?
Airflow allows for two types of documented access to git:
ssh
username/password
gitlab now requires SSH only; and in the case of a local deployment of gitlab, an available security configuration is 2FA or token-based aut... | https://stackoverflow.com/questions/78933864/how-do-i-configure-airflows-helm-chart-to-authenticate-git-sync-with-a-gitlab-a | gitlab, airflow, git-sync | 1,725,055,443 |
se_79313190 | stackoverflow | DATA_ENGINEERING | dynamic task mapping with using SimpleHttpOperator(uri change dynamlically) | dynamic task mapping with using SimpleHttpOperator(uri change dynamlically)
I'm trying to make dynamic uri using dynamic task mapping
DAG's flow is fetch_types >> request_tasks(dynamic task mapping)
fetch_types task is using postgresql operator to get types from database.
I've tried to make dynamic task but it return... | https://stackoverflow.com/questions/79313190/dynamic-task-mapping-with-using-simplehttpoperatoruri-change-dynamlically | airflow | 1,735,358,097 |
se_79328395 | stackoverflow | DATA_ENGINEERING | How do I connect my AIRFLOW which is installed on WSL to POSTGRES DATABASE which is installed on windows environment | How do I connect my AIRFLOW which is installed on WSL to POSTGRES DATABASE which is installed on windows environment
So I have installed APACHE AIRFLOW using WSL without docker and postgres sql as well on WSL. The postgres server is running on local host and on the same post 5432.
My question is can I connect my Airfl... | https://stackoverflow.com/questions/79328395/how-do-i-connect-my-airflow-which-is-installed-on-wsl-to-postgres-database-which | postgresql, airflow, windows-subsystem-for-linux | 1,735,974,747 |
se_76875507 | stackoverflow | DATA_ENGINEERING | Can not install apache-airflow-providers-mysql: pkg-config error | Can not install apache-airflow-providers-mysql: pkg-config error
I'm using Debian/Ubuntu, and I am trying to install an Airflow provider in my Python virtual environment:
$ pip install apache-airflow-providers-mysql
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully... | https://stackoverflow.com/questions/76875507/can-not-install-apache-airflow-providers-mysql-pkg-config-error | python-3.x, ubuntu, airflow, debian, mysql-python | 1,691,668,325 |
se_78816795 | stackoverflow | DATA_ENGINEERING | YAML passed as a variable in dbt command in airflow/shell script | YAML passed as a variable in dbt command in airflow/shell script
I have a problem with YAML validation. A dictionary value contains space and it causes a problem. My error message in airflow looks like this:
Executing following command:
dbt run --vars {"post_hook":"reset query_group","whatever":"else"}
[0m12:28:39 ... | https://stackoverflow.com/questions/78816795/yaml-passed-as-a-variable-in-dbt-command-in-airflow-shell-script | bash, shell, command-line, airflow, dbt | 1,722,434,469 |
se_79326520 | stackoverflow | DATA_ENGINEERING | How to clone repo using ssh on Airflow? | How to clone repo using ssh on Airflow?
I'm trying to clone my bitbucket repo using ssh (which works perfectly fine on my local machine) on Airflow to continue executing several scripts.
Since the keys are present locally I always get the following error while running my DAG on docker, and I believe the same will happ... | https://stackoverflow.com/questions/79326520/how-to-clone-repo-using-ssh-on-airflow | python, git, docker, ssh, airflow | 1,735,908,856 |
se_55459628 | stackoverflow | DATA_ENGINEERING | Airflow tasks getting killed with "Scheduler heartbeat got an exception" error | Airflow tasks getting killed with "Scheduler heartbeat got an exception" error
I have a dag which runs 4 tasks which are all bash operators. Recently i moved to airflow version 1.10.2. I am seeing the below error frequently:
ERROR - Scheduler heartbeat got an exception: (MySQLdb._exceptions.OperationalError)... | https://stackoverflow.com/questions/55459628/airflow-tasks-getting-killed-with-scheduler-heartbeat-got-an-exception-error | mysql, airflow | 1,554,135,979 |
se_47075348 | stackoverflow | DATA_ENGINEERING | How can I retrieve the 'scheduled time' for catchup jobs in Airflow? | How can I retrieve the 'scheduled time' for catchup jobs in Airflow?
When building an Airflow dag, I typically specify a simple schedule to run periodically - I expect this is the most common use.
dag = DAG('my_dag',
description='this is what it does',
schedule_interval='0 12 * * *',
start_d... | https://stackoverflow.com/questions/47075348/how-can-i-retrieve-the-scheduled-time-for-catchup-jobs-in-airflow | airflow | 1,509,625,738 |
se_47075348 | stackoverflow | DATA_ENGINEERING | How can I retrieve the 'scheduled time' for catchup jobs in Airflow? | How can I retrieve the 'scheduled time' for catchup jobs in Airflow?
When building an Airflow dag, I typically specify a simple schedule to run periodically - I expect this is the most common use.
dag = DAG('my_dag',
description='this is what it does',
schedule_interval='0 12 * * *',
start_d... | https://stackoverflow.com/questions/47075348/how-can-i-retrieve-the-scheduled-time-for-catchup-jobs-in-airflow | airflow | 1,509,625,738 |
se_71614318 | stackoverflow | DATA_ENGINEERING | Unable to get airflow variables in dags from Vault secret backend | Unable to get airflow variables in dags from Vault secret backend
I am using airflow 1.10.10 with Vault and I am trying to retrieve variables stored in Vault. I am able to retrieve connections but not variables.
The airflow configuration file contains:
airflow.cfg
[secrets]
backend = airflow.contrib.secrets.hashicorp_... | https://stackoverflow.com/questions/71614318/unable-to-get-airflow-variables-in-dags-from-vault-secret-backend | python, airflow, hashicorp-vault | 1,648,198,611 |
se_66758094 | stackoverflow | DATA_ENGINEERING | Airflow service host in docker-compose can't change time zone | Airflow service host in docker-compose can't change time zone
I would like to change the time zone of airflow from UTC to my current time zone(UTC+8 / Asia/Macau), and mark the DAG will run in Macau midnight not UTC midnight ( coz run in UTC midnight it make the data create time always be come previous day not tod... | https://stackoverflow.com/questions/66758094/airflow-service-host-in-docker-compose-cant-change-time-zone | docker-compose, airflow, airflow-scheduler | 1,616,479,929 |
se_79312118 | stackoverflow | DATA_ENGINEERING | Version mismatch error for dataproc serveless runtime 1.2 | Version mismatch error for dataproc serveless runtime 1.2
I want to run a spark job based on scala 2.12.15 and spark 3.3.4 with sparkBigQueryConnectorVersion = "0.28.1".
I just upgraded the runtime of dataproc serverless from 1.1 to 1.2 since i need to upgrade from java 11 to java 17 by also changing the library versi... | https://stackoverflow.com/questions/79312118/version-mismatch-error-for-dataproc-serveless-runtime-1-2 | scala, apache-spark, airflow, java-17, google-cloud-dataproc-serverless | 1,735,311,556 |
se_79312121 | stackoverflow | DATA_ENGINEERING | Using upstream Parameter to determine if downstream data aware DAG should run | Using upstream Parameter to determine if downstream data aware DAG should run
I would like to have the DAG scheduled to run if both the dataset table is updated and the upstream DAG has a param called kick_off_downstream_dag set to true:
# DAG definition
@dag(
start_date=pendulum.datetime(year=2023, month=1, day=1... | https://stackoverflow.com/questions/79312121/using-upstream-parameter-to-determine-if-downstream-data-aware-dag-should-run | airflow, directed-acyclic-graphs, data-engineering | 1,735,311,607 |
se_78541299 | stackoverflow | DATA_ENGINEERING | Getting the following error when trying to install Apache Airflow | Getting the following error when trying to install Apache Airflow
I am using Windows 11.
I have downloaded the pip for Apache Airflow, but when I try to run 'airflow db init', I get the following error:
C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\__init__.py:35: RuntimeWarning: Airf... | https://stackoverflow.com/questions/78541299/getting-the-following-error-when-trying-to-install-apache-airflow | python, sqlite, airflow, airflow-webserver | 1,716,849,497 |
se_79310197 | stackoverflow | DATA_ENGINEERING | Airflow Error: Issues Inserting Data into Database Due to Transaction Abortion | Airflow Error: Issues Inserting Data into Database Due to Transaction Abortion
I'm using Apache Airflow to automate the process of loading data into a PostgreSQL database. My workflow consists of multiple tasks where I fetch customer and order data via API, insert or update customer records, and then insert order data... | https://stackoverflow.com/questions/79310197/airflow-error-issues-inserting-data-into-database-due-to-transaction-abortion | postgresql, airflow, sql-insert | 1,735,237,777 |
se_79305239 | stackoverflow | DATA_ENGINEERING | ModuleNotFoundError: No module named 'pandas' in apache airflow | ModuleNotFoundError: No module named 'pandas' in apache airflow
I am building a DAG which uses pandas, but its not reflecting on the airflow WebUi showing pandas is not found. I have it install on my local machine as well as wsl enable ubuntu.
When I run python environment on both an import it, its working and... | https://stackoverflow.com/questions/79305239/modulenotfounderror-no-module-named-pandas-in-apache-airflow | python, pandas, module, airflow | 1,735,032,787 |
se_79295150 | stackoverflow | DATA_ENGINEERING | AWS fargate with EcsRunTaskOperator | AWS fargate with EcsRunTaskOperator
In my last job,
i was on GCP and we launched services as API with fastAPI on cloud run.
When airflow dag called the cloud run service, it raise it with a 10 minute timeout and i can use the same service over and over.
The problem with ECS tasks is i need to call X times the tasks fo... | https://stackoverflow.com/questions/79295150/aws-fargate-with-ecsruntaskoperator | terraform, airflow, amazon-ecs | 1,734,629,630 |
se_79297940 | stackoverflow | DATA_ENGINEERING | Using data aware scheduling to trigger downstream dags while using metadata contained in extra parameter as parameters for downstream dag | Using data aware scheduling to trigger downstream dags while using metadata contained in extra parameter as parameters for downstream dag
I currently have 2 DAGs that contain the same parameter that can be set called run_date. I want the upstream DAG to trigger the downstream DAG using inlet and outlet Datasets which ... | https://stackoverflow.com/questions/79297940/using-data-aware-scheduling-to-trigger-downstream-dags-while-using-metadata-cont | airflow, directed-acyclic-graphs, airflow-taskflow, data-engineering | 1,734,714,588 |
se_46059161 | stackoverflow | DATA_ENGINEERING | Airflow - How to pass xcom variable into Python function | Airflow - How to pass xcom variable into Python function
I need to reference a variable that's returned by a BashOperator. In my task_archive_s3_file, I need to get the filename from get_s3_file. The task simply prints {{ ti.xcom_pull(task_ids=submit_file_to_spark) }} as a string instead of the value.
If I use the bas... | https://stackoverflow.com/questions/46059161/airflow-how-to-pass-xcom-variable-into-python-function | airflow | 1,504,627,165 |
se_64016869 | stackoverflow | DATA_ENGINEERING | Airflow versus AWS Step Functions for workflow | Airflow versus AWS Step Functions for workflow
I am working on a project that grabs a set of input data from AWS S3, pre-processes and divvies it up, spins up 10K batch containers to process the divvied data in parallel on AWS Batch, post-aggregates the data, and pushes it to S3.
I already have software patterns from ... | https://stackoverflow.com/questions/64016869/airflow-versus-aws-step-functions-for-workflow | airflow, aws-step-functions | 1,600,804,708 |
se_64442727 | stackoverflow | DATA_ENGINEERING | How to set a number as retry condition in airflow DAG? | How to set a number as retry condition in airflow DAG?
In my Airflow DAG i have 4 tasks
task_1 >> [task_2,task_3]>> task_4
task_4 runs only after a successful run of both task_2 and task_3
How do i set a condition such as :
if task_2 fails, retry task_2 after 2 minutes and stop retrying after the 5th attempt
This is ... | https://stackoverflow.com/questions/64442727/how-to-set-a-number-as-retry-condition-in-airflow-dag | airflow-scheduler, airflow | 1,603,187,757 |
se_76726179 | stackoverflow | DATA_ENGINEERING | How to configure Pgbouncer in Airflow | How to configure Pgbouncer in Airflow
I have been configuring Airflow Helm using the official documentation found at the following link: https://airflow.apache.org/docs/helm-chart/stable/production-guide.html.
In my Airflow Helm configuration (values.yaml), I encountered a conflict between using metadataSecretName and... | https://stackoverflow.com/questions/76726179/how-to-configure-pgbouncer-in-airflow | charts, airflow, kubernetes-secrets, pgbouncer | 1,689,817,733 |
se_72478492 | stackoverflow | DATA_ENGINEERING | Airflow timetable that combines multiple cron expressions? | Airflow timetable that combines multiple cron expressions?
I have several cron expressions that I need to apply to a single DAG. There is no way to express them with one single cron expression.
Airflow 2.2 introduced Timetable. Is there an implementation that takes a list of cron expressions? | https://stackoverflow.com/questions/72478492/airflow-timetable-that-combines-multiple-cron-expressions | airflow, airflow-scheduler | 1,654,182,779 |
se_79128239 | stackoverflow | DATA_ENGINEERING | Airflow AUTH_ROLES_MAPPING is not working for Outh2 with Azure EntraId [App Registration] Authentication | Airflow AUTH_ROLES_MAPPING is not working for Outh2 with Azure EntraId [App Registration] Authentication
I am working on Integration Azure EntraId AUthentication with Airflow [2.9.3] by OAuth authorization. I am able to authenticate and authorize from AIrflow properly. But the roles mapping [AUTH_ROLES_MAPPING] is not... | https://stackoverflow.com/questions/79128239/airflow-auth-roles-mapping-is-not-working-for-outh2-with-azure-entraid-app-regi | azure, airflow, airflow-webserver, azure-app-registration | 1,729,936,217 |
se_79272992 | stackoverflow | DATA_ENGINEERING | Setup AIrflow in Windows wiithout using WSL, Docker | Setup AIrflow in Windows wiithout using WSL, Docker
I have tried to setup Airflow in Windows machine without using WSL or Docker for learning purpose but i'm facing the following error. so can someone help me to fix or any other alternative free methods?
tried installing using python pip
pip install apache-airflow
af... | https://stackoverflow.com/questions/79272992/setup-airflow-in-windows-wiithout-using-wsl-docker | windows, installation, airflow | 1,733,946,161 |
se_77224188 | stackoverflow | DATA_ENGINEERING | How to connect airflow with database by unsing Astronomer | How to connect airflow with database by unsing Astronomer
Please tell me how I can connect Apache Airflow (I run it via “astro” on the local computer) and my database (PostgreSQL), which is also installed on my local computer?
Traceback
psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5... | https://stackoverflow.com/questions/77224188/how-to-connect-airflow-with-database-by-unsing-astronomer | airflow, astronomer | 1,696,352,137 |
se_79255240 | stackoverflow | DATA_ENGINEERING | Running dbt in Airflow using GKEStartPodOperator | Running dbt in Airflow using GKEStartPodOperator
I would like to run dbt using the GKEStartPodOperator Airflow Operator but I am struggling to find the proper way to authenticate dbt so that it can perform operations on Google Cloud BigQuery.
So here’s my profile in profiles.yaml file:
my-profile:
target: prod
out... | https://stackoverflow.com/questions/79255240/running-dbt-in-airflow-using-gkestartpodoperator | airflow, dbt, google-cloud-composer | 1,733,411,671 |
se_79174774 | stackoverflow | DATA_ENGINEERING | Issue with Airflow to Airbyte Connection via host.docker.internal | Issue with Airflow to Airbyte Connection via host.docker.internal
I have been doing some online workshops and tutorials on creating data pipelines, mainly with Apache Airflow and Airbyte via Docker. This issue I am experiencing is establishing the connection between Airflow and Airbyte. I have read several posts which... | https://stackoverflow.com/questions/79174774/issue-with-airflow-to-airbyte-connection-via-host-docker-internal | docker, airflow, airflow-webserver, airbyte | 1,731,237,971 |
se_79270224 | stackoverflow | DATA_ENGINEERING | optimizing pull and push to db with python csv and psycopg using airflow | optimizing pull and push to db with python csv and psycopg using airflow
I have a task in airflow that invokes a helper function, the helper function reads data from oracle db and writes that data into an io buffer in batches. Then once the buffer is ready I read from that buffer and write the data. I think the readin... | https://stackoverflow.com/questions/79270224/optimizing-pull-and-push-to-db-with-python-csv-and-psycopg-using-airflow | python, io, airflow, psycopg3 | 1,733,880,119 |
se_79250543 | stackoverflow | DATA_ENGINEERING | How to perform Dynamic Task Mapping at the TaskGroup level in Airflow using Operators? | How to perform Dynamic Task Mapping at the TaskGroup level in Airflow using Operators?
Body:
I am trying to implement dynamic task mapping in Apache Airflow using a TaskGroup that includes operators like SQLCheckOperator and SQLExecuteQueryOperator. I have managed to use dynamic task mapping at the individual task lev... | https://stackoverflow.com/questions/79250543/how-to-perform-dynamic-task-mapping-at-the-taskgroup-level-in-airflow-using-oper | python, airflow | 1,733,304,628 |
se_54550988 | stackoverflow | DATA_ENGINEERING | How to get jobId that was submitted using Dataproc Workflow Template | How to get jobId that was submitted using Dataproc Workflow Template
I have submitted a Hive job using Dataproc Workflow Template with the help of Airflow operator (DataprocWorkflowTemplateInstantiateInlineOperator) written in Python. Once the job is submitted some name will be assigned as jobId (example: job0-abc2def... | https://stackoverflow.com/questions/54550988/how-to-get-jobid-that-was-submitted-using-dataproc-workflow-template | python-3.x, google-cloud-platform, airflow, google-cloud-dataproc, google-cloud-composer | 1,549,447,745 |
se_79258713 | stackoverflow | DATA_ENGINEERING | How to schedule an Airflow dag to run daily including today? | How to schedule an Airflow dag to run daily including today?
This code taken from the official documentation is supposed to work, but it doesn't, it omits today's execution. If in start_date I include yesterday's date if it is executed today, but in the interface it indicates me the date erroneously as if it had been ... | https://stackoverflow.com/questions/79258713/how-to-schedule-an-airflow-dag-to-run-daily-including-today | python, airflow | 1,733,502,719 |
se_79208379 | stackoverflow | DATA_ENGINEERING | Is there a way to send Airflow error logs to a SlackAPIPostOperator? | Is there a way to send Airflow error logs to a SlackAPIPostOperator?
All of task failures result in a slack notification being sent by way of on_failure_notifiy.
I would like to include the error message that Airflow reports. I tried using context['exception'] but that was blank. I searched, but I can't find anything ... | https://stackoverflow.com/questions/79208379/is-there-a-way-to-send-airflow-error-logs-to-a-slackapipostoperator | airflow, slack | 1,732,123,998 |
se_79256821 | stackoverflow | DATA_ENGINEERING | Unable to import Airflow into dag | Unable to import Airflow into dag
When trying to install airflow via pip install airflow it returns Please install package apache-airflow instead of airflow.
Installing apache-airflow works, but when trying to from apache-airflow import DAG the hyphen causes an invalid syntax error and from airflow import DAG does not... | https://stackoverflow.com/questions/79256821/unable-to-import-airflow-into-dag | python, airflow | 1,733,458,313 |
se_42982986 | stackoverflow | DATA_ENGINEERING | External files in Airflow DAG | External files in Airflow DAG
I'm trying to access external files in a Airflow Task to read some sql, and I'm getting "file not found". Has anyone come across this?
from airflow import DAG
from airflow.operators.python_operator import PythonOperator
from datetime import datetime, timedelta
dag = DAG(
'my_dat',
... | https://stackoverflow.com/questions/42982986/external-files-in-airflow-dag | python, airflow | 1,490,290,077 |
se_79253093 | stackoverflow | DATA_ENGINEERING | Pass data to jinja template in .sql file from a CustomOperator(BaseOperator) | Pass data to jinja template in .sql file from a CustomOperator(BaseOperator)
How can we pass data by using a custom operator task ?
Here is my code. The sql file does not take the value of the key table_name. The rendered template suposed to be
SELECT COUNT(*) FROM product;
custom_test_operator.py
from airflow.model... | https://stackoverflow.com/questions/79253093/pass-data-to-jinja-template-in-sql-file-from-a-customoperatorbaseoperator | airflow, airflow-2.x, airflow-webserver, airflow-taskflow | 1,733,359,040 |
se_71883573 | stackoverflow | DATA_ENGINEERING | Copy Airflow project into Airflow DAGs directory | Copy Airflow project into Airflow DAGs directory
I have an Airflow project with the following structure
my_project
|
dags-custom-|custom_operator1.py
| |custom_operator2.py
| |custom_hook1.py
|
my_dag.py
Normally, if I have only my_dag.py I would do
cp my_dag.py ~/airflow/dags/
However,... | https://stackoverflow.com/questions/71883573/copy-airflow-project-into-airflow-dags-directory | python, airflow | 1,650,022,865 |
se_78790646 | stackoverflow | DATA_ENGINEERING | importing airflow automatically creates airflow directory | importing airflow automatically creates airflow directory
I've noticed that whenever I import airflow in Python, it automatically creates an airflow directory in my home directory. Literally just this
$ python
Python 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0] on linux
Type "help", "c... | https://stackoverflow.com/questions/78790646/importing-airflow-automatically-creates-airflow-directory | python, airflow | 1,721,856,452 |
se_75838783 | stackoverflow | DATA_ENGINEERING | Airflow Sync Dags from S3 Causes Dag Execution Error | Airflow Sync Dags from S3 Causes Dag Execution Error
I'm running airflow on kubernetes and I'm trying to implement a dag s3 sync instead of git-sync in my airflow.
My airflow deployment is using the helm chart apache-airflow https://airflow.apache.org/ --version 1.5.0.
My values.yaml is set up like bellow:
airflow:
... | https://stackoverflow.com/questions/75838783/airflow-sync-dags-from-s3-causes-dag-execution-error | kubernetes, amazon-s3, airflow, kubernetes-helm | 1,679,699,855 |
se_79243949 | stackoverflow | DATA_ENGINEERING | Connection error from GCP Composer (Airflow) to GCP PubSub | Connection error from GCP Composer (Airflow) to GCP PubSub
I'm trying to subscribe to a GCP PubSub to get the messages from GCP Composer but got the following error:
airflow.exceptions.AirflowException: The conn_id `google_cloud_default` isn't defined
My DAG code is the following:
subscribe_pubsub_task = PubSubPullSe... | https://stackoverflow.com/questions/79243949/connection-error-from-gcp-composer-airflow-to-gcp-pubsub | python, google-cloud-platform, airflow, google-cloud-pubsub | 1,733,139,920 |
se_79247337 | stackoverflow | DATA_ENGINEERING | Airflow @task decorator not having the correct order | Airflow @task decorator not having the correct order
I'm trying the new TaskFlow API
I have 4 @task then I would love to have at the end t1 >> t2 >> t3 >>> t4.
I endup doing :
t1 = task1()
t2 = task2(t1)
t3 = task3(t2)
t4 = task4(t2)
t2.set_downstream(t3)
t3.set_downstream(t4)
But the result is :
I wanted a straigh... | https://stackoverflow.com/questions/79247337/airflow-task-decorator-not-having-the-correct-order | airflow, airflow-taskflow | 1,733,224,230 |
se_79247190 | stackoverflow | DATA_ENGINEERING | Astro dev start with podman: error getting image label | Astro dev start with podman: error getting image label
I'm trying to follow the astronomer airflow tutorial ebook using podman, and I hit an error that apparently no else on the internet has.
When I run astro dev start, podman completes all the steps in the dockerfile, but then it throws the following error:
error get... | https://stackoverflow.com/questions/79247190/astro-dev-start-with-podman-error-getting-image-label | airflow, podman, astronomer | 1,733,221,468 |
se_47808520 | stackoverflow | DATA_ENGINEERING | airflow TriggerDagRunOperator how to change the execution date | airflow TriggerDagRunOperator how to change the execution date
I noticed that for scheduled task the execution date is set in the past according to
Airflow was developed as a solution for ETL needs. In the ETL world,
you typically summarize data. So, if I want to summarize data for
2016-02-19, I would do it a... | https://stackoverflow.com/questions/47808520/airflow-triggerdagrunoperator-how-to-change-the-execution-date | triggers, airflow | 1,513,238,540 |
se_79213308 | stackoverflow | DATA_ENGINEERING | Airflow environment variable is empty | Airflow environment variable is empty
I am trying to pass the ID of a playlist using an environment variable. It is initially set through the execution of this Python script from the user.
def get_input(prompt):
return input(prompt)
playlist_id = get_input("Bitte geben Sie die PLAYLIST_ID ein: ")
with open('.env... | https://stackoverflow.com/questions/79213308/airflow-environment-variable-is-empty | airflow, airflow-taskflow | 1,732,235,813 |
se_68907754 | stackoverflow | DATA_ENGINEERING | Access Forbidden while accessing log in airflow with CeleryExecutor | Access Forbidden while accessing log in airflow with CeleryExecutor
I'm trying to deploy Airflow on kubernetes (on Azure Kubernetes Service) with the celery Executor. However, once a task is done, I get the following error while trying to access its logs:
*** Log file does not exist: /opt/airflow/logs/maintenance/clea... | https://stackoverflow.com/questions/68907754/access-forbidden-while-accessing-log-in-airflow-with-celeryexecutor | kubernetes, celery, airflow, azure-aks, airflow-scheduler | 1,629,808,765 |
se_79242930 | stackoverflow | DATA_ENGINEERING | Last Scheduled File Not Loading into Redshift from AWS | Last Scheduled File Not Loading into Redshift from AWS
Every day, I receive 4 files on AWS S3. While 3 files load successfully into Redshift, the last file data not store in the redshift, possibly due to a timezone issue. How can I fix this problem?
Dag
The cloud_redshift_sync task in an Airflow DAG is configured with... | https://stackoverflow.com/questions/79242930/last-scheduled-file-not-loading-into-redshift-from-aws | python, airflow | 1,733,111,960 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.