henry3260 commented on code in PR #63829:
URL: https://github.com/apache/airflow/pull/63829#discussion_r2965822602
##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/powerbi.py:
##########
@@ -189,6 +190,22 @@ async def get_refresh_details_by_refresh_id(
return refresh_details
+ def trigger_dataset_refresh_sync(
+ self, *, dataset_id: str, group_id: str, request_body: dict[str, Any]
| None = None
+ ) -> str:
+ """
+ Trigger Power BI Dataset refresh synchronously.
+
+ This is a wrapper around the async `trigger_dataset_refresh` method.
+ """
+ return asyncio.run(
Review Comment:
> Hello @henry3260 , I can confirm that now wait_for_completion works as
expected in our environment. Thank you!
Appreciate!
--
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]