gustavosaquino commented on issue #61766:
URL: https://github.com/apache/airflow/issues/61766#issuecomment-3891320866
Tested PR #60369 and not OK
The default behavior of PowerBIDatasetRefreshOperator in version 12.9.0 is
to wait for the dataset update status. When running the same DAG with version
13.0.0rc1, this default behavior is changed to trigger the update and not wait
for the response, and there is a warning in the logs about the new
wait_for_completion parameter.
`WARNING - The PowerBIDatasetRefreshOperator now always uses deferrable
execution when wait_for_completion=True.`
When setting the parameter in the DAG to True, the operator does not wait
for the dataset update status, and when set to False, it displays an execution
error as shown below:
```
[2026-02-12T14:23:52.261194Z] INFO - Triggered dataset refresh <coroutine
object PowerBIHook.trigger_dataset_refresh at 0x70bd0432f9a0> (fire-and-forget)
[2026-02-12T14:23:52.261475Z] ERROR - Task failed with exceptionTypeError:
cannot serialize object of type <class 'coroutine'>
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py,
line 1068 in run
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py,
line 1477 in _execute_task
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/operator.py,
line 417 in wrapper
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/microsoft/azure/operators/powerbi.py,
line 134 in execute
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py,
line 421 in xcom_push
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py,
line 588 in _xcom_push
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/xcom.py,
line 77 in set
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/xcom.py,
line 339 in serialize_value
File
/home/airflow/.local/lib/python3.12/site-packages/airflow/serialization/serde.py,
line 193 in serialize
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]