Skip to content

[Bug] xcom_push failing with Airflow 3.1.0 #166

@jmcbroom

Description

@jmcbroom

Describe the bug
Using the operators returns an error in Airflow 3.1.0:

AttributeError: 'DbtBuildOperator' object has no attribute 'xcom_push'
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/sdk/execution_time/task_runner.py", line 920 in run
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/sdk/execution_time/task_runner.py", line 1302 in _execute_task
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/sdk/bases/operator.py", line 416 in wrapper
File "/home/airflow/.local/lib/python3.10/site-packages/airflow_dbt_python/operators/dbt.py", line 304 in execute
File "/home/airflow/.local/lib/python3.10/site-packages/airflow_dbt_python/operators/dbt.py", line 347 in xcom_push_dbt_results

this comment looks possibly relevant but i'm not sure.

i also found this issue

we don't use the xcoms, so still easy enough to use with passing do_xcom_push=False.

Airflow

  • Version: 3.1.0
  • Provider: locally via Docker Compose

Dbt

  • Version: dbt-core 1.10.3, dbt-snowflake 1.10.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions