morelgeorge opened a new issue, #62157: URL: https://github.com/apache/airflow/issues/62157
### Apache Airflow Provider(s) microsoft-azure ### Versions of Apache Airflow Providers - 12.10.1 ### Apache Airflow version 3.1.7 ### Operating System RHEL 9.6 ### Deployment Virtualenv installation ### Deployment details _No response_ ### What happened We are building a DAG file which triggers Dataflow refresh in Power BI Service. To be able to do that, I am using this [example](https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/stable/_modules/tests/system/microsoft/azure/example_powerbi.html). ``` refresh_dataflow_task = MSGraphAsyncOperator( task_id="refresh_dataflow", conn_id="PowerBI_Connection", url="myorg/groups/{workspaceId}/dataflows/{dataflowId}/refreshes", method="POST", path_parameters={ "workspaceId": GROUP_ID, "dataflowId": DATAFLOW_ID, }, data={"notifyOption": "NoNotification"} ) dataflow_status = MSGraphSensor( task_id="dataflow_refresh_status", conn_id="PowerBI_Connection", url="myorg/groups/{workspaceId}/dataflows/{dataflowId}/transactions?$top=1", path_parameters={ "workspaceId": GROUP_ID, "dataflowId": DATAFLOW_ID }, timeout=10, event_processor=lambda response, **context: response["value"][0]["status"] == "Success" # type: ignore[typeddict-item] ) refresh_dataflow_task >> dataflow_status ``` The sensor works fine when the dataflow refresh is in status "Success". However it does not stop when the timeout value is reached. It is in the loop and I must finish the DAG manually. ### What you think should happen instead When the timeout parameter is set, then the MSGraphSensor should stop when the limit is reached. When the timeout parameter is not set, some default value should be set (Currently, the default value is None) ### How to reproduce 1. Start Power BI object refresh with using MSGraphAsyncOperator. 2. Cancel the refresh in Power BI service. (The status must be different then is expected by event_processor) 3. Check if the MSGraphSensor is stopped when the timeout is reached ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
