dabla commented on code in PR #63829:
URL: https://github.com/apache/airflow/pull/63829#discussion_r2955760686
##########
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:
I think a more advance solution with triggers would be more suitable, which
would mean with multiple next_methods.
--
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]