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_78851438
stackoverflow
DATA_ENGINEERING
trying to install a package in an "airflow" context, but module can't be found (ModuleNotFoundError)
trying to install a package in an "airflow" context, but module can't be found (ModuleNotFoundError) I have used docker desktop to install airflow. And I have copied some sample dags available on localhost to my vscode environment and that code works fine. But when I tried to apply my python code that ha...
https://stackoverflow.com/questions/78851438/trying-to-install-a-package-in-an-airflow-context-but-module-cant-be-found
python, docker, powershell, airflow
1,723,184,958
se_78852075
stackoverflow
DATA_ENGINEERING
How to make DAG running past midnight look at last 3 days of data?
How to make DAG running past midnight look at last 3 days of data? I have a DAG running overnight where I need to run a python function on the past 3 days of data. My schedule interval is 0 22 * * * and my start_date is pendulum.today(tz='America/Los_Angeles').subtract(days=1) I pass pendulum.today(tz='America/Los_Ang...
https://stackoverflow.com/questions/78852075/how-to-make-dag-running-past-midnight-look-at-last-3-days-of-data
python, airflow
1,723,196,130
se_78850702
stackoverflow
DATA_ENGINEERING
Uploading dags on Airflow-EKS
Uploading dags on Airflow-EKS Today I have a question In resume, I have an EKS cluster and I installed Apache Airflow in it. I decided to create the PV and PVC to maintain the Dags instead of locally in web pod. The definition is apiVersion: v1 kind: PersistentVolume metadata: name: airflow-dags-pv namespace: airf...
https://stackoverflow.com/questions/78850702/uploading-dags-on-airflow-eks
airflow, amazon-eks, airflow-webserver
1,723,158,706
se_78849901
stackoverflow
DATA_ENGINEERING
Can only create a functional MWAA environment through the UI console, not CDK
Can only create a functional MWAA environment through the UI console, not CDK I'm trying to create a new MWAA environment through CDK. I'm able to deploy the infrastructure, but the dags won't appear in the Airflow frontend. When I look at the dag processor manager logs I see the following summary: ===================...
https://stackoverflow.com/questions/78849901/can-only-create-a-functional-mwaa-environment-through-the-ui-console-not-cdk
amazon-web-services, airflow, aws-cdk, mwaa
1,723,141,780
se_78835220
stackoverflow
DATA_ENGINEERING
Ariflow Tasks in TaskGroup run out of order
Ariflow Tasks in TaskGroup run out of order I'm using Dynamic Task Mapping feature with Task Groups to generate n number of tasks for my input list. DAG gets generated but at execution I'm seeing odd behaviour. Mapped Tasks from second Task are getting triggered simultaneously when Mapped Tasks from first Task are st...
https://stackoverflow.com/questions/78835220/ariflow-tasks-in-taskgroup-run-out-of-order
python, airflow, mwaa
1,722,871,994
se_78848572
stackoverflow
DATA_ENGINEERING
Python doesn't see added module to the same dir
Python doesn't see added module to the same dir I added to my utils dir a new file that contains dict variable which I want to import into another file. mapping.py config = [ { "filter_column": "SHOW_NAME", "horizons": [ 3, 4, 5, 6 ], ...
https://stackoverflow.com/questions/78848572/python-doesnt-see-added-module-to-the-same-dir
python, airflow, mwaa
1,723,122,140
se_78820345
stackoverflow
DATA_ENGINEERING
Apache Airflow build via docker-compose Web UI still presenting UTC
Apache Airflow build via docker-compose Web UI still presenting UTC I am using docker-compose to build Airflow. I have read the official docs to revise the timezone here. This is my file: &airflow-common build: . environment: &airflow-common-env AIRFLOW__CORE__DEFAULT_TIMEZONE: 'Europe/***' # AIRFLOW__WE...
https://stackoverflow.com/questions/78820345/apache-airflow-build-via-docker-compose-web-ui-still-presenting-utc
airflow
1,722,506,759
se_73847732
stackoverflow
DATA_ENGINEERING
Using the REST API in Apache Airflow Helm Chart
Using the REST API in Apache Airflow Helm Chart I'm running Apache Airflow, built off of the Helm chart, and I'd like to use the REST Api to run dags. However when I make a request, I get a 401 Unauthenticated error. I know this is due to the auth_backends not being set up properly. My question is what should I add t...
https://stackoverflow.com/questions/73847732/using-the-rest-api-in-apache-airflow-helm-chart
kubernetes, airflow
1,664,138,617
se_78056546
stackoverflow
DATA_ENGINEERING
Airflow with Vault as backend secret
Airflow with Vault as backend secret It's my first question here! I really need help, I have been trying this over a week and it's not working :( I created airflow with helm on openshift (kubernetes). I use CeleryKubernetesExecutor. I use a custom CA - I put it also on the pod (edit the image with new dockerfile) In m...
https://stackoverflow.com/questions/78056546/airflow-with-vault-as-backend-secret
kubernetes, airflow, backend, kubernetes-helm, vault
1,708,874,843
se_78842654
stackoverflow
DATA_ENGINEERING
Use SlackNotifier in Airflow within a callback function
Use SlackNotifier in Airflow within a callback function SlackNotifier works fine when called directly from the callback however is not doing anything once I call it from within a defined callback function (need to execute it only when DAG is not triggered manually). The function itself works fine (e.g. logging works)....
https://stackoverflow.com/questions/78842654/use-slacknotifier-in-airflow-within-a-callback-function
airflow, slack
1,723,020,027
se_57424117
stackoverflow
DATA_ENGINEERING
ServiceNow integration with Airflow
ServiceNow integration with Airflow Can we integrate ServiceNow with Airflow ? I mean if there is any DAG failure, can we rerun the failed DAG/tasks by submitting a ServiceNow request ? Also can we submit an adhoc job to run using ServiceNow. Thanks in advance.
https://stackoverflow.com/questions/57424117/servicenow-integration-with-airflow
airflow, scheduler, servicenow, tivoli-work-scheduler
1,565,329,901
se_68294911
stackoverflow
DATA_ENGINEERING
AWS Airflow v2.0.2 doesn't show Postgres connection type
AWS Airflow v2.0.2 doesn't show Postgres connection type I just started migrating my Airflow v2.0.2 codebase to MWAA (AWS Airflow service). I added the following to the requirements.txt (and uploaded it to the S3 bucket intended for sync): apache-airflow-providers-postgres==2.0.0 But Postgres connection type does...
https://stackoverflow.com/questions/68294911/aws-airflow-v2-0-2-doesnt-show-postgres-connection-type
postgresql, airflow, mwaa
1,625,711,484
se_78119955
stackoverflow
DATA_ENGINEERING
Apache airflow FileSensor return a file name
Apache airflow FileSensor return a file name I'd like to know a way to get the file name detected by the file sensor when the filepath parameter is set to *.xlsx. I need to retrieve it in order to send it to an xlsx to sql lite conversion function I've written. Thanks :D Here is my FileSensor `file_sensor_task = FileS...
https://stackoverflow.com/questions/78119955/apache-airflow-filesensor-return-a-file-name
file, airflow, task, sensors
1,709,801,721
se_46794860
stackoverflow
DATA_ENGINEERING
Airflow kills my tasks after 1 minute
Airflow kills my tasks after 1 minute I have a very simple DAG with two tasks, like following: default_args = { 'owner': 'me', 'start_date': dt.datetime.today(), 'retries': 0, 'retry_delay': dt.timedelta(minutes=1) } dag = DAG( 'test DAG', default_args=default_args, schedule_interval=None...
https://stackoverflow.com/questions/46794860/airflow-kills-my-tasks-after-1-minute
python, directed-acyclic-graphs, airflow
1,508,257,466
se_78785099
stackoverflow
DATA_ENGINEERING
How CeleryExecutor executes KubernetesPodOperator?
How CeleryExecutor executes KubernetesPodOperator? I have an Airlfow instance spinning in Azure Kubernetes Service. Deployed with official Helm chart. And I noticed CeleryExecutor is used there. I have KubernetesPodOperator tasks, and wondering how exactly CeleryExecutor executes KubernetesPodOperator? Which magic is ...
https://stackoverflow.com/questions/78785099/how-celeryexecutor-executes-kubernetespodoperator
kubernetes, airflow, kubernetespodoperator, kubernetesexecutor
1,721,760,263
se_78826103
stackoverflow
DATA_ENGINEERING
Virtual python env for Custom operator in airflow DAG
Virtual python env for Custom operator in airflow DAG Context: I have complex custom operators in codebase. It is written in Python, inherited from BaseOperator. It's well structured implementation, & it does lot of pre & post processing (override pre_execute, execute & post_execute). Each of the operators within a D...
https://stackoverflow.com/questions/78826103/virtual-python-env-for-custom-operator-in-airflow-dag
python, airflow, virtualenv
1,722,610,770
se_75129221
stackoverflow
DATA_ENGINEERING
Parse Json error: required property expects a value but got null
Parse Json error: required property expects a value but got null Hey can someone help me with this, This flow has been working okay but I tried using it today, but I got this error. kindly help me figure it out. attached is my error and the prior steps and the schema { "type": "array", "items": { "type": ...
https://stackoverflow.com/questions/75129221/parse-json-error-required-property-expects-a-value-but-got-null
airflow, power-automate
1,673,826,999
se_78410362
stackoverflow
DATA_ENGINEERING
Airflow Task Group getting marked as done if any of the tasks fail inside it and triggering all_done trigger incorrectly
Airflow Task Group getting marked as done if any of the tasks fail inside it and triggering all_done trigger incorrectly So the root of my issue is that I have a task group with several tasks, once in a while one will fail and that will set the status of the task group to failed instantly instead of waiting for all ta...
https://stackoverflow.com/questions/78410362/airflow-task-group-getting-marked-as-done-if-any-of-the-tasks-fail-inside-it-and
airflow, airflow-2.x, airflow-webserver
1,714,500,223
se_78821678
stackoverflow
DATA_ENGINEERING
Airflow ExternalTaskSensor to load table in bigquey
Airflow ExternalTaskSensor to load table in bigquey I have DAG which is loading data into bigquery table A. The table A is dependent on 8 other tables and the DAG for these tables are triggered at different time. I want create a DAG for table A such that data should be loaded into it only after all other dependent DAG...
https://stackoverflow.com/questions/78821678/airflow-externaltasksensor-to-load-table-in-bigquey
google-bigquery, airflow, directed-acyclic-graphs, terraform-provider-gcp
1,722,524,732
se_75980623
stackoverflow
DATA_ENGINEERING
Why is my Airflow hanging up if I send a http request inside a task?
Why is my Airflow hanging up if I send a http request inside a task? System: MacOS Apple M1 (local machine) Airflow: 2.5.3 Executor: Local with Postgres Database I am trying to implement some externally triggered workflows which load data from our REST APIs. I am using the Python Operator to run the code and trigger t...
https://stackoverflow.com/questions/75980623/why-is-my-airflow-hanging-up-if-i-send-a-http-request-inside-a-task
python, airflow, airflow-2.x
1,681,159,977
se_78817434
stackoverflow
DATA_ENGINEERING
Dynamically create n tasks in airflow from params
Dynamically create n tasks in airflow from params I want to dynamically create n taks, n should be defined by params, so i can define it when running the dag in the UI: import pendulum from airflow.decorators import dag, task @dag( schedule=None, start_date=pendulum.datetime(2021, 1, 1, tz="UTC"), catchup...
https://stackoverflow.com/questions/78817434/dynamically-create-n-tasks-in-airflow-from-params
airflow
1,722,443,133
se_78798569
stackoverflow
DATA_ENGINEERING
How to add trigger for run dag into another dag (with decorators) in Airflow?
How to add trigger for run dag into another dag (with decorators) in Airflow? I got 2 dags in same dags folder: dag_update_database (dag_update_database.py) dag_add_client_loyalty (dag_updade_clients_loyalty.py) I can run dag_add_client_loyalty with this code, but I get error: [2024-07-29, 14:34:15 MSK] {task_comma...
https://stackoverflow.com/questions/78798569/how-to-add-trigger-for-run-dag-into-another-dag-with-decorators-in-airflow
python, airflow
1,722,003,680
se_71377322
stackoverflow
DATA_ENGINEERING
Airflow up and running but no DAG-s in UI
Airflow up and running but no DAG-s in UI I’m running Apache airflow on my local Windows 11 machine. Airflow processes are up and running and Airflow UI is accessible through localhost:8080 address. I have also DAGs file (tuto.py) in dags folder but I can’t see any DAGs via the Airflow UI. I have restarted the Airflo...
https://stackoverflow.com/questions/71377322/airflow-up-and-running-but-no-dag-s-in-ui
airflow
1,646,635,629
se_78805902
stackoverflow
DATA_ENGINEERING
Airflow 2.6.1 set log-level for specific modules to WARN does not work
Airflow 2.6.1 set log-level for specific modules to WARN does not work I'm running Spark 3.4.1 tasks scheduled by Airflow 2.6.1. with a SparkSubmit Operator. Spark is running on Cluster Mode and therefore I don't have explicit logs from Spark Driver. Instead i have updates from spark_submit.py job which polls spark dr...
https://stackoverflow.com/questions/78805902/airflow-2-6-1-set-log-level-for-specific-modules-to-warn-does-not-work
apache-spark, pyspark, airflow, airflow-2.x
1,722,239,142
se_58459855
stackoverflow
DATA_ENGINEERING
How to delete a DAG run in Apache Airflow?
How to delete a DAG run in Apache Airflow? I know there is a way to delete a DAG. But is it possible to delete a DAG run with a specific run_id? Something like: airflow delete_dag_run <dag_id> <run_id>
https://stackoverflow.com/questions/58459855/how-to-delete-a-dag-run-in-apache-airflow
airflow
1,571,449,465
se_78804261
stackoverflow
DATA_ENGINEERING
DNS lookup failed for broker
DNS lookup failed for broker I am new to Kafka and currently attempting to send data from Airflow to a Kafka broker. However, I'm encountering an issue where it reports a DNS lookup failure for the broker. broker service in docker-compose.yml broker: image: confluentinc/cp-server:7.4.0 hostname: broker con...
https://stackoverflow.com/questions/78804261/dns-lookup-failed-for-broker
python, apache-kafka, airflow, kafka-python
1,722,183,935
se_78785443
stackoverflow
DATA_ENGINEERING
How to pass airflow connection credentials to DatabricksSubmitNowOperator without exposing them?
How to pass airflow connection credentials to DatabricksSubmitNowOperator without exposing them? I'm rather new to airflow and couldn't find information anywhere. Currently in my DAG i'm reading an existing Postgres connection configured in airflow thus taking the credentials for it and passing them to task that uses ...
https://stackoverflow.com/questions/78785443/how-to-pass-airflow-connection-credentials-to-databrickssubmitnowoperator-withou
airflow
1,721,766,139
se_78795082
stackoverflow
DATA_ENGINEERING
How can I pause a GKE autopilot nigthly?
How can I pause a GKE autopilot nigthly? How can I pause my GKE Autopilot cluster nightly in GCP? This cluster supports the Cloud Composer service in our Data stage area. We know that it's not possible to do this natively because the service does not support this option, but it is possible to reduce the number of node...
https://stackoverflow.com/questions/78795082/how-can-i-pause-a-gke-autopilot-nigthly
google-cloud-platform, airflow, google-kubernetes-engine, google-cloud-composer
1,721,934,848
se_78794712
stackoverflow
DATA_ENGINEERING
DAG: How can I Transform an unformatted file into a CSV in the same Bucket?
DAG: How can I Transform an unformatted file into a CSV in the same Bucket? I'm trying to create a DAG (airflow) that processes an unformatted file uploaded to a GCP bucket and generates a new .csv file with specific transformations. The input file format is "CARTOLAS.YYYYMM" and the desired output is "CARTOLAS.YYYYMM...
https://stackoverflow.com/questions/78794712/dag-how-can-i-transform-an-unformatted-file-into-a-csv-in-the-same-bucket
python, google-cloud-platform, airflow, directed-acyclic-graphs, bucket
1,721,928,500
se_78353677
stackoverflow
DATA_ENGINEERING
use airflow Template variable in python string
use airflow Template variable in python string I have a ClickHouse operator in Airflow, and I want to execute queries on the database on a scheduled basis. I need the variable ds to be replaced in the query filter each time the job runs. here is my code: default_args = { 'owner': 'nestor', 'depends_on_past': False, 's...
https://stackoverflow.com/questions/78353677/use-airflow-template-variable-in-python-string
airflow
1,713,529,981
se_78789970
stackoverflow
DATA_ENGINEERING
Passing Airflow Variables to a constructor
Passing Airflow Variables to a constructor I have a PythonOperator task that requires arguments to be passed to the constructor before the python callable is invoked. PythonOperator(task_id='mytask', provide_context=True, python_callable=foo(var="{{ var.json.mydict }}").run, ...
https://stackoverflow.com/questions/78789970/passing-airflow-variables-to-a-constructor
airflow
1,721,845,516
se_78777735
stackoverflow
DATA_ENGINEERING
Is &#39;airflow db migrate&#39; idempotent and can I run it as part of an entrypoint script?
Is &#39;airflow db migrate&#39; idempotent and can I run it as part of an entrypoint script? I have an airflow instance running inside a docker container. I might want to update Airflow in the future while ensuring that the database matches the current version of airflow. Can I run airflow db migrate as part of an ini...
https://stackoverflow.com/questions/78777735/is-airflow-db-migrate-idempotent-and-can-i-run-it-as-part-of-an-entrypoint-scr
airflow
1,721,638,077
se_75803290
stackoverflow
DATA_ENGINEERING
Number of concurrent tasks run in AWS managed Airflow is not linearly dependant on the number of Workers
Number of concurrent tasks run in AWS managed Airflow is not linearly dependant on the number of Workers AWS provides to run Airflow as a service. It has 3 different environments in which it can be run, namely Small, Medium and Large. These environments have different configurations of CPU and RAM. I used the Large co...
https://stackoverflow.com/questions/75803290/number-of-concurrent-tasks-run-in-aws-managed-airflow-is-not-linearly-dependant
python, airflow, mwaa
1,679,412,949
se_78783385
stackoverflow
DATA_ENGINEERING
How to pass in-operator parameters to built-in templating for Airflow?
How to pass in-operator parameters to built-in templating for Airflow? Have recently started to use Airflow for various jobs, trying to get handle on templating. I was very impressed by EmailOperator, in which you could specify a html_content to be a HTML file, which would then be able to access variables from eg. ti....
https://stackoverflow.com/questions/78783385/how-to-pass-in-operator-parameters-to-built-in-templating-for-airflow
airflow
1,721,737,152
se_78783831
stackoverflow
DATA_ENGINEERING
Is there a way to control maximum dag concurrency from UI param?
Is there a way to control maximum dag concurrency from UI param? In airflow is it possible to control the concurrency of the DAG with an UI param? As far as I know DAG run parameters are only know as task runtime, so it does not look like a good approach. Controlling the number of concurrent tasks per dag run via UI s...
https://stackoverflow.com/questions/78783831/is-there-a-way-to-control-maximum-dag-concurrency-from-ui-param
python, airflow, airflow-2.x, airflow-taskflow
1,721,742,631
se_78783274
stackoverflow
DATA_ENGINEERING
Is there a way to trigger DAG when the current run fails?
Is there a way to trigger DAG when the current run fails? Can I trigger a DAG immediately when the current run fails (it doesn't matter which of the tasks failed), without scheduling it?
https://stackoverflow.com/questions/78783274/is-there-a-way-to-trigger-dag-when-the-current-run-fails
python, airflow, directed-acyclic-graphs
1,721,735,538
se_49231340
stackoverflow
DATA_ENGINEERING
How to limit Airflow to run only one instance of a DAG run at a time?
How to limit Airflow to run only one instance of a DAG run at a time? I want the tasks in the DAG to all finish before the 1st task of the next run gets executed. I have max_active_runs = 1, but this still happens. default_args = { 'depends_on_past': True, 'wait_for_downstream': True, 'max_active_runs': 1,...
https://stackoverflow.com/questions/49231340/how-to-limit-airflow-to-run-only-one-instance-of-a-dag-run-at-a-time
airflow
1,520,845,133
se_55626195
stackoverflow
DATA_ENGINEERING
Export all airflow connections to new environment
Export all airflow connections to new environment I'm trying to migrate all the existing airflow connections to a new airflow. I was looking at the cli options airflow connections --help, it gives an option to list but doesn't give an option to export/import to/from json format. Is there a way via cli/airflow ui to...
https://stackoverflow.com/questions/55626195/export-all-airflow-connections-to-new-environment
airflow
1,554,964,958
se_78771559
stackoverflow
DATA_ENGINEERING
Can&#39;t expose Airflow UI with Classic Load Balancer
Can&#39;t expose Airflow UI with Classic Load Balancer I have an airflow helm release running on EKS cluster NAME READY STATUS RESTARTS AGE LABELS pod/airflow-postgresql-0 1/1 Running 0 59m app.kubernetes.io/component=primary,app.kuberne...
https://stackoverflow.com/questions/78771559/cant-expose-airflow-ui-with-classic-load-balancer
kubernetes, airflow, load-balancing
1,721,435,755
se_78767212
stackoverflow
DATA_ENGINEERING
Retrieve result status from AzureContainerInstancesOperator into XCOM in Airflow
Retrieve result status from AzureContainerInstancesOperator into XCOM in Airflow I'd like to have an Airflow DAG get some status information back after running an AzureContainerInstancesOperator task in Airflow. With the equivalent docker operator, DockerOperator, it is possible to get the last line of output by defau...
https://stackoverflow.com/questions/78767212/retrieve-result-status-from-azurecontainerinstancesoperator-into-xcom-in-airflow
airflow
1,721,352,624
se_76754800
stackoverflow
DATA_ENGINEERING
Connecting to Spark Standalone cluster from Airflow
Connecting to Spark Standalone cluster from Airflow I've airflow running on local env using docker-compose file and spark standalone cluster also running on local. I logged into airflow worker container and tried to submit the spark job to standalone spark cluster but connection to master node is getting refused. air...
https://stackoverflow.com/questions/76754800/connecting-to-spark-standalone-cluster-from-airflow
docker, apache-spark, airflow, spark-submit, apache-spark-standalone
1,690,203,862
se_77647623
stackoverflow
DATA_ENGINEERING
Airflow SYNTAX error : leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
Airflow SYNTAX error : leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers Hello I was trying to run a xcom clear dag on every sunday . But the Airflow dag thrown me the error as below . airflow version 2.4.3 . For scheduling i am using the cron expression Broken DAG: [/usr...
https://stackoverflow.com/questions/77647623/airflow-syntax-error-leading-zeros-in-decimal-integer-literals-are-not-permitt
airflow
1,702,398,315
se_78765413
stackoverflow
DATA_ENGINEERING
Airflow pods wil only run on one k8s node (probably not an affinity issue)
Airflow pods wil only run on one k8s node (probably not an affinity issue) I am running Airflow (deployed via Helm chart) using the KubernetesExecutor on a microk8s cluster that's also runnig Ceph. We have 4 nodes. A control node and three identical data/processing nodes. I have set proper affinity and resource limits...
https://stackoverflow.com/questions/78765413/airflow-pods-wil-only-run-on-one-k8s-node-probably-not-an-affinity-issue
kubernetes, airflow, microk8s
1,721,317,021
se_78762948
stackoverflow
DATA_ENGINEERING
How to send Airflow Failed Notifications to Microsoft Teams using Microsoft 365 Worfklow
How to send Airflow Failed Notifications to Microsoft Teams using Microsoft 365 Worfklow I've got an Airflow function who send failed notification task in Teams group. With new Microsoft politics my old webhook call will not function anymore in few months so i want to work right now to adapt the code. There is my curr...
https://stackoverflow.com/questions/78762948/how-to-send-airflow-failed-notifications-to-microsoft-teams-using-microsoft-365
python-3.x, notifications, airflow, workflow, microsoft-teams
1,721,287,597
se_78760086
stackoverflow
DATA_ENGINEERING
Issue with Airflow Variables Adding Extra Backslashes to Private Key
Issue with Airflow Variables Adding Extra Backslashes to Private Key I'm encountering a peculiar issue with Airflow. I've stored a private key as a variable in Airflow, but it seems to be adding an extra backslash (\) to newline characters (\n). Here's an example of the problem: "-----BEGIN RSA PRIVATE KEY-----\nABCDE...
https://stackoverflow.com/questions/78760086/issue-with-airflow-variables-adding-extra-backslashes-to-private-key
json, variables, airflow, private-key
1,721,226,429
se_78757665
stackoverflow
DATA_ENGINEERING
Airflow run same task with pause for 24 hours
Airflow run same task with pause for 24 hours Is there a way to pause a task for 24 hours then run the same task again? I want to write a dag that pull data from api, but the api have limit of data I can pull in a day so I need to wait for 24 hours to pull the data again. so I want the dag to work like task1--> dag pa...
https://stackoverflow.com/questions/78757665/airflow-run-same-task-with-pause-for-24-hours
airflow
1,721,191,329
se_58474063
stackoverflow
DATA_ENGINEERING
does manual triggering of a airflow DAG interfere with the scheduled airflow trigger?
does manual triggering of a airflow DAG interfere with the scheduled airflow trigger? I want to use airflow DAG to run some jobs. I have scheduled the expression to every 25 mins, like */25 * * * *. for instance, it seems to run, like at 6:25, 6:50, and at 7 as well, but I want to run it at 7:15, not at 7. as an alte...
https://stackoverflow.com/questions/58474063/does-manual-triggering-of-a-airflow-dag-interfere-with-the-scheduled-airflow-tri
cron, airflow, airflow-scheduler
1,571,582,143
se_78758574
stackoverflow
DATA_ENGINEERING
How to retrive which DAG has updated a Composer Airflow Dataset
How to retrive which DAG has updated a Composer Airflow Dataset Regarding Google Cloud Composer, I have defined a DAG in this way: dataset = Dataset("//my_Dataset") dag = DAG( dag_id='my_dag', default_args=default_args, schedule=[dataset], catchup=False) The Dataset (//my_Dataset) can be updated by 2 different DAG...
https://stackoverflow.com/questions/78758574/how-to-retrive-which-dag-has-updated-a-composer-airflow-dataset
python, airflow, directed-acyclic-graphs, google-cloud-composer
1,721,206,790
se_78699276
stackoverflow
DATA_ENGINEERING
Airflow on Kubernetes with Service Account
Airflow on Kubernetes with Service Account I'm having a rough time migrating Airflow to EKS. I have an airflow instance that is deployed to eks/kubernetes. I created a service account 'airflow-pod-mgr' and bound it and all that. apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: namespace: namespace nam...
https://stackoverflow.com/questions/78699276/airflow-on-kubernetes-with-service-account
kubernetes, airflow, amazon-eks
1,719,955,189
se_78751368
stackoverflow
DATA_ENGINEERING
How to publish an Open Telemetry custom metric from Airflow?
How to publish an Open Telemetry custom metric from Airflow? I'm trying to publish a custom metric using Open Telemetry. I'm running Airflow 2.9.2, an OTel collector, Prometheus and Grafana in Docker containers on my laptop. The "out of the box" Airflow metrics are working fine, meaning I can see them in the collector...
https://stackoverflow.com/questions/78751368/how-to-publish-an-open-telemetry-custom-metric-from-airflow
python, airflow, open-telemetry
1,721,067,146
se_53256948
stackoverflow
DATA_ENGINEERING
Differences and Use Cases for Apache NiFi, Apache Airflow, and Apache Falcon?
Differences and Use Cases for Apache NiFi, Apache Airflow, and Apache Falcon? I am trying to understand the differences between Apache NiFi, Apache Airflow, and Apache Falcon in the context of data pipeline management. Here is my use case: Hadoop-based architecture: The data pipeline needs to integrate seamlessly wit...
https://stackoverflow.com/questions/53256948/differences-and-use-cases-for-apache-nifi-apache-airflow-and-apache-falcon
etl, apache-nifi, airflow, apache-falcon
1,542,004,311
se_75884678
stackoverflow
DATA_ENGINEERING
In Airflow GUI - ModuleNotFoundError: No module named &#39;airflow.providers.cncf
In Airflow GUI - ModuleNotFoundError: No module named &#39;airflow.providers.cncf Apache Airflow version 2.5.2 What happened Not able to create new (Admin - > Connection -> When I press + sign it gives below error regarding airflow.providers.cncf Error: Ooops! Something bad has happened. Airflow is used by many users,...
https://stackoverflow.com/questions/75884678/in-airflow-gui-modulenotfounderror-no-module-named-airflow-providers-cncf
python-3.x, airflow, airflow-2.x, airflow-api
1,680,156,933
se_78750315
stackoverflow
DATA_ENGINEERING
How to use other services when using the airflow docker image?
How to use other services when using the airflow docker image? I am just starting with airflow. I took a course in which the teacher used an unofficial image of airflow: puckel/docker-airflow together with other images of jupyter, postgres and minio in a docker-compose.yml. However now there is an official docker ver...
https://stackoverflow.com/questions/78750315/how-to-use-other-services-when-using-the-airflow-docker-image
postgresql, docker, docker-compose, airflow
1,721,052,505
se_78747238
stackoverflow
DATA_ENGINEERING
Error &#39;html5lib not found&#39; when using pandas.read_html() function in google cloud composer 2.1.8
Error &#39;html5lib not found&#39; when using pandas.read_html() function in google cloud composer 2.1.8 I have a code to scrape data from a website. I used pandas.read_html() and wrote everything in a dataproc. When I run the code in (Composer &)Airflow somethimes it runs successfully and sometimes it fails with this...
https://stackoverflow.com/questions/78747238/error-html5lib-not-found-when-using-pandas-read-html-function-in-google-clou
html, web-scraping, airflow, google-cloud-composer, html5lib
1,720,983,771
se_78747314
stackoverflow
DATA_ENGINEERING
Apache airflow: No module name &#39;airflow&#39;. Task failed
Apache airflow: No module name &#39;airflow&#39;. Task failed I installed Airflow by docker according to this video. (Windows+WSL+Ubuntu+Docker) I have my_dag.py file (replaced APIKEY): from airflow import DAG from airflow.operators.python import PythonOperator from datetime import datetime import pandas as pd def _r...
https://stackoverflow.com/questions/78747314/apache-airflow-no-module-name-airflow-task-failed
python, docker, airflow, directed-acyclic-graphs
1,720,986,152
se_78744166
stackoverflow
DATA_ENGINEERING
After running Apache Airflow in Docker can&#39;t extend it to requirements - No module named &#39;setuptools.extern.six&#39;
After running Apache Airflow in Docker can&#39;t extend it to requirements - No module named &#39;setuptools.extern.six&#39; I have launched docker container with Apache Airflow and it's working. Now I am trying to extend all necessary dependencies and here's the issue I'm faced with. My Dockerfile FROM apache/airflow...
https://stackoverflow.com/questions/78744166/after-running-apache-airflow-in-docker-cant-extend-it-to-requirements-no-modu
docker, airflow, setuptools
1,720,881,754
se_78744166
stackoverflow
DATA_ENGINEERING
After running Apache Airflow in Docker can&#39;t extend it to requirements - No module named &#39;setuptools.extern.six&#39;
After running Apache Airflow in Docker can&#39;t extend it to requirements - No module named &#39;setuptools.extern.six&#39; I have launched docker container with Apache Airflow and it's working. Now I am trying to extend all necessary dependencies and here's the issue I'm faced with. My Dockerfile FROM apache/airflow...
https://stackoverflow.com/questions/78744166/after-running-apache-airflow-in-docker-cant-extend-it-to-requirements-no-modu
docker, airflow, setuptools
1,720,881,754
se_78738738
stackoverflow
DATA_ENGINEERING
Airflow: xcom_pull from a CustomPriorityWeightPlugin
Airflow: xcom_pull from a CustomPriorityWeightPlugin I want to prioritize a run_test_task in DAG B depending on an xcom value from a task get_username in DAG A. DAG B is triggered by a TriggerDagRunOperator trigger_task in DAG A. The idea is to use Custom Weight Rule that is based on a built-in _DownstreamPriorityWeig...
https://stackoverflow.com/questions/78738738/airflow-xcom-pull-from-a-custompriorityweightplugin
airflow, airflow-xcom, airflow-plugins
1,720,762,546
se_76629079
stackoverflow
DATA_ENGINEERING
PydanticUserError: A non-annotated attribute was detected in Airflow db init command
PydanticUserError: A non-annotated attribute was detected in Airflow db init command I'm trying to run the airflow db init command in my Airflow project, but I'm encountering the following error: (venv) ➜ aflow airflow standalone /home/ugur/aflow/venv/lib/python3.10/site-packages/pydantic/_internal/_config.py:261 Us...
https://stackoverflow.com/questions/76629079/pydanticusererror-a-non-annotated-attribute-was-detected-in-airflow-db-init-com
python, airflow, virtualenv, pydantic
1,688,648,164
se_78735440
stackoverflow
DATA_ENGINEERING
Airflow ERROR - Received SIGTERM. Terminating subprocesses
Airflow ERROR - Received SIGTERM. Terminating subprocesses I am running a DAG which invokes an API multiple times and API gets data from a DB. After few invocations, the DAG returns the below error. I am running the DAG in Kubernetes environment. Could someone redirect me where to check and from where is dag receiving...
https://stackoverflow.com/questions/78735440/airflow-error-received-sigterm-terminating-subprocesses
kubernetes, airflow, amazon-eks
1,720,699,825
se_78742604
stackoverflow
DATA_ENGINEERING
How To Set `Database` Field In Airflow Connection When Using `Airflow Connections import`
How To Set `Database` Field In Airflow Connection When Using `Airflow Connections import` Description I'm running into the following error when attempting to run airflow connections import The object have illegal keys: database. The dictionary can only contain the following keys: {'login', 'password', 'schema', 'descr...
https://stackoverflow.com/questions/78742604/how-to-set-database-field-in-airflow-connection-when-using-airflow-connection
airflow
1,720,830,428
se_53099815
stackoverflow
DATA_ENGINEERING
Bash Operator error: No such file or directory in airflow
Bash Operator error: No such file or directory in airflow I am a newbie to Airflow and struggling with BashOperator. I want to access a shell script using bash operatory in my dag.py. I checked: How to run bash script file in Airflow and BashOperator doen't run bash file apache airflow on how to access shell script...
https://stackoverflow.com/questions/53099815/bash-operator-error-no-such-file-or-directory-in-airflow
python, bash, airflow, directed-acyclic-graphs
1,541,069,651
se_76466498
stackoverflow
DATA_ENGINEERING
MWAA use both wheel dependencies and PyPI dependencies
MWAA use both wheel dependencies and PyPI dependencies I'm trying to use both a wheel dependency that I created and, additionally, use PyPi dependencies in MWAA. I was basing the steps I did on this article: https://repost.aws/knowledge-center/mwaa-install-custom-packages My requirements.txt file: --find-links /usr/lo...
https://stackoverflow.com/questions/76466498/mwaa-use-both-wheel-dependencies-and-pypi-dependencies
airflow, mwaa
1,686,670,270
se_78739581
stackoverflow
DATA_ENGINEERING
ModuleNotFoundError: from airflow.providers.mongo.hooks.mongo import MongoHook
ModuleNotFoundError: from airflow.providers.mongo.hooks.mongo import MongoHook I have already installed the apache-airflow-providers-mongo package. It appears in the pip list, and all three dependencies are installed correctly. However, in the code, I still encounter a ModuleNotFoundError from the airflow.providers.mo...
https://stackoverflow.com/questions/78739581/modulenotfounderror-from-airflow-providers-mongo-hooks-mongo-import-mongohook
mongodb, airflow, airflow-webserver
1,720,776,371
se_78738482
stackoverflow
DATA_ENGINEERING
Connection between SQL Server and Airflow: [Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)
Connection between SQL Server and Airflow: [Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect) I am trying to connect SQL Server and Airflow. While trying to establish connection I got the following issue: [Driver Manager]Data source name not found and no default driver s...
https://stackoverflow.com/questions/78738482/connection-between-sql-server-and-airflow-driver-managerdata-source-name-not
sql-server, airflow
1,720,755,419
se_78731011
stackoverflow
DATA_ENGINEERING
Airflow DAG Import Error Avro - installed everywhere
Airflow DAG Import Error Avro - installed everywhere import avro.schema ModuleNotFoundError: No module named 'avro' I have this error when I try to import a DAG in Airflow. I have avro installed in the docker image as shown below: Installed /home/airflow/.local/lib/python3.12/site-packages/avro-1.11.3-py3.12.egg Proc...
https://stackoverflow.com/questions/78731011/airflow-dag-import-error-avro-installed-everywhere
python, docker, docker-compose, airflow, directed-acyclic-graphs
1,720,619,733
se_72755774
stackoverflow
DATA_ENGINEERING
Airflow - can&#39;t launch scheduler at given port
Airflow - can&#39;t launch scheduler at given port When I'm trying to perform airflow scheduler CLI command to run airflow scheduler (locally), and keep getting error of Connection in use: ('0.0.0.0', 8794). No scheduler process is running, but the port seems to be in use. Did someone have this problem and can help me...
https://stackoverflow.com/questions/72755774/airflow-cant-launch-scheduler-at-given-port
airflow, airflow-scheduler
1,656,176,569
se_78710955
stackoverflow
DATA_ENGINEERING
Getting HTTP request failed: 403 Client Error: Forbidden for url - When running Http Cloud function from Cloud composer DAG
Getting HTTP request failed: 403 Client Error: Forbidden for url - When running Http Cloud function from Cloud composer DAG I am running a DAG in Cloud Composer version 3 to trigger an HTTP cloud function on the same shared VPC. Both GCP services are using the same user-created service account. However, I'm encounteri...
https://stackoverflow.com/questions/78710955/getting-http-request-failed-403-client-error-forbidden-for-url-when-running
google-cloud-platform, google-cloud-functions, airflow, google-cloud-composer, google-cloud-iam
1,720,175,461
se_78734229
stackoverflow
DATA_ENGINEERING
Why when running airflow to the simplest DAG it seems to be run twice?
Why when running airflow to the simplest DAG it seems to be run twice? I am starting to learn how to use Airflow for pipelines. I have the simplest DAG in from __future__ import annotations import textwrap from datetime import datetime, timedelta # The DAG object; we'll need this to instantiate a DAG from airflow.m...
https://stackoverflow.com/questions/78734229/why-when-running-airflow-to-the-simplest-dag-it-seems-to-be-run-twice
airflow
1,720,684,248
se_78730558
stackoverflow
DATA_ENGINEERING
How can I use multiple Airflow tasks in the same pod?
How can I use multiple Airflow tasks in the same pod? I'm trying to build my first airflow DAG in k8s running on custom image. I did the following example code: with DAG( 'test-1', default_args=default_args, schedule_interval=timedelta(minutes=100) ) as dag: test1 = KubernetesPodOperator( image="...
https://stackoverflow.com/questions/78730558/how-can-i-use-multiple-airflow-tasks-in-the-same-pod
airflow
1,720,614,297
se_76546457
stackoverflow
DATA_ENGINEERING
Airflow job unable to send requests to the internet
Airflow job unable to send requests to the internet I have an airflow job that does webscraping. What I realize however is that the airflow job is stuck on this line "print(requests.get("http://youtube.com"))". Code: with DAG( dag_id='youtube_scrape', schedule='@daily', start_date=datetime(2022, 1, 1, 12, ...
https://stackoverflow.com/questions/76546457/airflow-job-unable-to-send-requests-to-the-internet
python, web-scraping, network-programming, airflow
1,687,615,960
se_78731000
stackoverflow
DATA_ENGINEERING
how to create multiple task group in parallel using taskgroup decorator in Airflow
how to create multiple task group in parallel using taskgroup decorator in Airflow I would like to improve this DAG if possible. from ... import.... with DAG( ... ) as dag: @task_group(group_id=f"group", dag=dag) def group(dag_instance, dataset, table): check_for_udpate = operatorhere( ... ...
https://stackoverflow.com/questions/78731000/how-to-create-multiple-task-group-in-parallel-using-taskgroup-decorator-in-airfl
python, airflow, airflow-taskflow
1,720,619,569
se_78731128
stackoverflow
DATA_ENGINEERING
Great Expectations - KeyError: &quot;Neither config : (...) nor config_defaults : {} contains a module_name key
Great Expectations - KeyError: &quot;Neither config : (...) nor config_defaults : {} contains a module_name key I'm new to GX and I'm trying to test the connections defined in my great_expectations.yml. This is the function that I'm trying to run under airflow in a local docker environment: def test_ge_data_context_co...
https://stackoverflow.com/questions/78731128/great-expectations-keyerror-neither-config-nor-config-defaults
python, airflow, great-expectations
1,720,621,150
se_78729511
stackoverflow
DATA_ENGINEERING
Docker Compose for AirFlow (Source: SQL Server and destination: MongoDB) not working
Docker Compose for AirFlow (Source: SQL Server and destination: MongoDB) not working Has anyone ever implemented AirFlow where source = SQL Server and destination = Mongodb? I am not getting working connection for SQL Server and Mongodb in Airflow documentation. Does anyone have a Docker file with these two connection...
https://stackoverflow.com/questions/78729511/docker-compose-for-airflow-source-sql-server-and-destination-mongodb-not-wor
sql-server, mongodb, airflow
1,720,601,247
se_62499661
stackoverflow
DATA_ENGINEERING
Airflow: DockerOperator fails with Permission Denied error
Airflow: DockerOperator fails with Permission Denied error I'm trying to run a docker container via Airflow but getting Permission Denied errors. I have seen a few related posts and some people seem to have solved it via sudo chmod 777 /var/run/docker.sock which is a questionable solution at best, but it still didn't ...
https://stackoverflow.com/questions/62499661/airflow-dockeroperator-fails-with-permission-denied-error
docker, airflow
1,592,748,382
se_71813746
stackoverflow
DATA_ENGINEERING
Reading XCOM and Airflow variables probably slows down Airflow (in Google Cloud Composer)
Reading XCOM and Airflow variables probably slows down Airflow (in Google Cloud Composer) We are trying to merge daily (CSV) extract files into our Data Warehouse. In our use case the DAG's python code is the same for all of our DAGs (~2000), so we generate them by a DAG generator logic from a single python file. In o...
https://stackoverflow.com/questions/71813746/reading-xcom-and-airflow-variables-probably-slows-down-airflow-in-google-cloud
airflow, airflow-scheduler, google-cloud-composer, airflow-2.x
1,649,564,801
se_78725703
stackoverflow
DATA_ENGINEERING
Datetime format and time data not matching timestamp format errors in traceback log =
Datetime format and time data not matching timestamp format errors in traceback log = Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in \_run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in \_run_code exec(code, run_globals) File "/app/...
https://stackoverflow.com/questions/78725703/datetime-format-and-time-data-not-matching-timestamp-format-errors-in-traceback
python, datetime, timestamp, airflow
1,720,529,416
se_73464513
stackoverflow
DATA_ENGINEERING
Newly installed Airflow providers don&#39;t show in Web UI
Newly installed Airflow providers don&#39;t show in Web UI I'm using MWAA and when I add new providers via requirements.txt they do not show in the "Airflow - Admin > Providers" UI, while the default providers installed on the MWAA instance show just fine. An example: I add apache-airflow-providers-databricks==2.0.2 ...
https://stackoverflow.com/questions/73464513/newly-installed-airflow-providers-dont-show-in-web-ui
airflow, provider, directed-acyclic-graphs, airflow-2.x, mwaa
1,661,284,933
se_72915877
stackoverflow
DATA_ENGINEERING
How to manually run an Airflow task if it has never ran before
How to manually run an Airflow task if it has never ran before I've ran into this issue several times, and I can't find a solution. I have a DAG in Airflow that runs every day, which works great. Sometimes I add new tasks to this DAG, which are then included during the next scheduled DAG run, which is also great. Some...
https://stackoverflow.com/questions/72915877/how-to-manually-run-an-airflow-task-if-it-has-never-ran-before
python, airflow
1,657,306,655
se_78711509
stackoverflow
DATA_ENGINEERING
How to set my own config file in Apache Airflow
How to set my own config file in Apache Airflow Installed Apache Airflow through docker from this manual and can't set my airflow.cfg file. In docker-compose.yaml I found comment option that will take host configuration file and I uncommented this. I set my host path and tried to throw airflow.cfg to config folder. Bu...
https://stackoverflow.com/questions/78711509/how-to-set-my-own-config-file-in-apache-airflow
docker, docker-compose, airflow
1,720,183,098
se_78697067
stackoverflow
DATA_ENGINEERING
Airflow decorated task type hinting
Airflow decorated task type hinting Take this simple dag, in which one task takes the output of another: import datetime from airflow.decorators import dag, task @task def task_that_returns_a_string() -> str: return "a string" @task def task_that_takes_a_string(arg: str) -> None: print(arg) @dag( schedu...
https://stackoverflow.com/questions/78697067/airflow-decorated-task-type-hinting
python, airflow, python-typing, pyright, airflow-taskflow
1,719,923,542
se_76701323
stackoverflow
DATA_ENGINEERING
Trying to download apache airflow with pip but error pops up when &quot;building wheels for collected packages: google-re2&quot;
Trying to download apache airflow with pip but error pops up when &quot;building wheels for collected packages: google-re2&quot; I'm on MacOS Mojave, Python 3.8.3, and pip 23.2. I made a py_env, activated it, and ran pip install apache-airflow==2.6.3' \ --constraint "https://raw.githubusercontent.com/apache/airflow/c...
https://stackoverflow.com/questions/76701323/trying-to-download-apache-airflow-with-pip-but-error-pops-up-when-building-whee
airflow
1,689,564,435
se_63763545
stackoverflow
DATA_ENGINEERING
how to get latest execution time of a dag run in airflow
how to get latest execution time of a dag run in airflow I tried below code but still i am getting issue from airflow.models DagModel def get_latest_execution_date(**kwargs): session = airflow.settings.Session() f = open("/home/Insurance/InsuranceDagsTimestamp.txt","w+") try: Insurance_last_dag_run = session.q...
https://stackoverflow.com/questions/63763545/how-to-get-latest-execution-time-of-a-dag-run-in-airflow
airflow
1,599,391,160
se_78707846
stackoverflow
DATA_ENGINEERING
Fetching return value of dbt macro in airflow
Fetching return value of dbt macro in airflow I am having a dbt macro which is defined as follows : As you can see, I am returning the result from the dbt macro. ` {% macro return_hello() %} {% set result = 'Hello, dbt!' %} {{ return(result) }} {% endmacro %} ` I would want to fetch the values of the result v...
https://stackoverflow.com/questions/78707846/fetching-return-value-of-dbt-macro-in-airflow
python, airflow, dbt
1,720,105,779
se_78694941
stackoverflow
DATA_ENGINEERING
airflow db init is not adding necessary files to database when setting things up
airflow db init is not adding necessary files to database when setting things up This is the error that I am getting. I do not see any files created in the airflow directory I manually created: ''' (airflow_env) vk@Vivians-Air airflow % airflow db init /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/...
https://stackoverflow.com/questions/78694941/airflow-db-init-is-not-adding-necessary-files-to-database-when-setting-things-up
python, kubernetes, terminal, airflow
1,719,891,257
se_78701882
stackoverflow
DATA_ENGINEERING
Airflow to load data from GCS to BQ
Airflow to load data from GCS to BQ I am learning airflow and trying to use GCSToBigQueryOperator to load data from GCS to BQ Table, it seems the task_id is not an accepted parameter and I am getting below error: airflow.exceptions.AirflowException: Invalid arguments were passed to GCSToBigQueryOperator (task_id: gcs_...
https://stackoverflow.com/questions/78701882/airflow-to-load-data-from-gcs-to-bq
airflow, google-cloud-composer
1,720,007,465
se_78704980
stackoverflow
DATA_ENGINEERING
How to Handle Skipping Subsequent Tasks for Specific Indices in Dynamic Task Mapping in Airflow Task Groups
How to Handle Skipping Subsequent Tasks for Specific Indices in Dynamic Task Mapping in Airflow Task Groups I’ve recently started working with Airflow and I’m using Airflow 2.9.1 with the Taskflow API. I’ve created a task group with dynamic task mapping and I’m using task decorators exclusively (no operators). Here’s ...
https://stackoverflow.com/questions/78704980/how-to-handle-skipping-subsequent-tasks-for-specific-indices-in-dynamic-task-map
airflow, airflow-2.x, airflow-taskflow, airflow-api
1,720,065,739
se_78703052
stackoverflow
DATA_ENGINEERING
ModuleNotFoundError with airflow db init
ModuleNotFoundError with airflow db init So I'm attempting to do an A/B deployment of airflow on EKS (self-managed) and I've run into the problem of needing extra databases for my environments. (if this can be avoided, I'd love to know how, but that's not my question). I've created a Postgres database in my cluster ca...
https://stackoverflow.com/questions/78703052/modulenotfounderror-with-airflow-db-init
kubernetes, airflow
1,720,021,336
se_54076589
stackoverflow
DATA_ENGINEERING
Airflow Remote file sensor
Airflow Remote file sensor I am trying find if there is any files in the remote server match the provided pattern. Something as similar to the below solution Airflow File Sensor for sensing files on my local drive I used SSHOperator with bash command as below, SSH_Bash = """ echo 'poking for files...' ls /h...
https://stackoverflow.com/questions/54076589/airflow-remote-file-sensor
airflow-scheduler, airflow
1,546,872,463
se_74012236
stackoverflow
DATA_ENGINEERING
Airflow - create dynamic tasks based on config
Airflow - create dynamic tasks based on config I would like to manually trigger Airflow dag and pass parameters in this call. How to create DAG tasks based on the passed parameters?
https://stackoverflow.com/questions/74012236/airflow-create-dynamic-tasks-based-on-config
airflow
1,665,391,318
se_78678816
stackoverflow
DATA_ENGINEERING
Override Airflow operator parameters in subclass
Override Airflow operator parameters in subclass I want to enforce max_active_tis_per_dagrun=1 in a subclassed operator. Tried these approaches: class BetterKubernetesPodOperator(KubernetesPodOperator): def __init__(self, **kwargs) -> None: _kwargs = kwargs | { "max_active_tis_per_dagrun": 1 } supe...
https://stackoverflow.com/questions/78678816/override-airflow-operator-parameters-in-subclass
airflow, airflow-2.x
1,719,505,193
se_78695402
stackoverflow
DATA_ENGINEERING
Cloud Composer (Airflow)- DAG test_dag scheduling was skipped, probably because the DAG record was locked
Cloud Composer (Airflow)- DAG test_dag scheduling was skipped, probably because the DAG record was locked When trying to run tasks in for loop, the scheduler logs shows - 'DAG test_dag scheduling was skipped, probably because the DAG record was locked' and DAG fails after sometime. When tried to execute the task in se...
https://stackoverflow.com/questions/78695402/cloud-composer-airflow-dag-test-dag-scheduling-was-skipped-probably-because
airflow, google-cloud-composer, airflow-2.x
1,719,902,633
se_78692333
stackoverflow
DATA_ENGINEERING
Fetch and Store Airflow Logs
Fetch and Store Airflow Logs Is there any way to fetch the airflow logs programmatically and store it in some variable ? (in the form of strings) I want to use the logs stored inside that variable later on . Initially, I am trying to get the logs and print them using logging.info() I tried doing : def fetch_logs(conte...
https://stackoverflow.com/questions/78692333/fetch-and-store-airflow-logs
python, airflow
1,719,838,032
se_70003860
stackoverflow
DATA_ENGINEERING
Can MWAA requirements.txt be automatically set to the latest version?
Can MWAA requirements.txt be automatically set to the latest version? We have an automated upload system for our DAG's to MWAA. Is there a way to have the requirements.txt in the S3 bucket be automatically set to its latest version? I cannot find an option for this in the AWS console.
https://stackoverflow.com/questions/70003860/can-mwaa-requirements-txt-be-automatically-set-to-the-latest-version
airflow, mwaa
1,637,149,685
se_78672251
stackoverflow
DATA_ENGINEERING
How fix error Object of type *** is not JSON serializable in Airflow?
How fix error Object of type *** is not JSON serializable in Airflow? I make custom library for working with API. But I get error then trying to use it in my dag. Then I run my dag I get error for connect_to_api task: {python.py:202} INFO - Done. Returned value was: [<yclients.yclientsapi object at 0x7f5a0fb87890>] {x...
https://stackoverflow.com/questions/78672251/how-fix-error-object-of-type-is-not-json-serializable-in-airflow
python, airflow
1,719,402,906
se_78676206
stackoverflow
DATA_ENGINEERING
How to avoid error (&#39;cannot mix list and non-list, non-null values&#39;, &#39;Conversion failed for column position with type object&#39;) in Airflow?
How to avoid error (&#39;cannot mix list and non-list, non-null values&#39;, &#39;Conversion failed for column position with type object&#39;) in Airflow? I got this task in my dag: @task def get_result_from_records_api(api, tries: int, result_from_salons_api: list): salon_ids_list = result_from_salons_api[1] ...
https://stackoverflow.com/questions/78676206/how-to-avoid-error-cannot-mix-list-and-non-list-non-null-values-conversion
python, airflow
1,719,474,460
se_78686206
stackoverflow
DATA_ENGINEERING
How to insert int128 data to Cickhouse with ClickHouseHook?
How to insert int128 data to Cickhouse with ClickHouseHook? I'm using ClickHouseHook for insert data to databse. from airflow_clickhouse_plugin.hooks.clickhouse import ClickHouseHook ch_hook = ClickHouseHook(clickhouse_conn_id=connections_name) def update_replacingmergetree(ch_hook, table_name: str, df: pd.DataFrame...
https://stackoverflow.com/questions/78686206/how-to-insert-int128-data-to-cickhouse-with-clickhousehook
python, airflow, clickhouse
1,719,670,260
se_78668711
stackoverflow
DATA_ENGINEERING
How to get pd.Dataframe from ClickHouseHook()?
How to get pd.Dataframe from ClickHouseHook()? I got this code in my DAG for Airflow: import pandas as pd import datetime import io import httpx from airflow.decorators import dag, task from airflow.models import Variable from clickhouse_driver import Client from airflow_clickhouse_plugin.hooks.clickhouse import Click...
https://stackoverflow.com/questions/78668711/how-to-get-pd-dataframe-from-clickhousehook
python, pandas, airflow, clickhouse
1,719,335,199
se_78688033
stackoverflow
DATA_ENGINEERING
How to let airflow(scheduler) dynamically load custom modules without restarting?
How to let airflow(scheduler) dynamically load custom modules without restarting? I use airflow to schedule my ETL jobs, and the project have version control. Environment is built with airflow docker image, and the codes use bind mount. So any changes (including git pull command) are synchronized with the container. T...
https://stackoverflow.com/questions/78688033/how-to-let-airflowscheduler-dynamically-load-custom-modules-without-restarting
airflow
1,719,736,595
se_78685243
stackoverflow
DATA_ENGINEERING
&quot;database disk image is malformed&quot; on dbinit
&quot;database disk image is malformed&quot; on dbinit On a local server I tried airflow standalone to run Airflow but it throws: root@SGS-001-G037:/home/mahdi# airflow standalone standalone | Starting Airflow Standalone standalone | Checking database is initialized INFO [alembic.runtime.migration] Context impl SQLit...
https://stackoverflow.com/questions/78685243/database-disk-image-is-malformed-on-dbinit
sqlite, airflow
1,719,643,154