PowerBIDatasetRefreshOperator¶
Standard imports
- class PowerBI_Operator.operators.powerbi_refresh_dataset_operator.PowerBIDatasetRefreshOperator(conn_id: str, dataset_id: str, group_id: str, wait_for_termination: bool = False, timeout: int = 604800, check_interval: int = 60, *args, **kwargs)¶
Basisklassen:
BaseOperatorRefreshes a Power BI dataset.
By default, the operator will wait until the refresh has completed before exiting. The refresh status is checked every 60 seconds as a default. This can be changed by specifying a new value for check_interval.
- Parameters:
dataset_id – The dataset id.
group_id – The workspace id.
wait_for_termination – Wait until the pre-existing or current triggered refresh completes before exiting.
force_refresh – When enabled, it will force refresh the dataset again, after pre-existing ongoing refresh request is terminated.
timeout – Time in seconds to wait for a dataset to reach a terminal status for non-asynchronous waits. Used only if
wait_for_terminationis True.check_interval – Number of seconds to wait before rechecking the refresh status.
- execute(context: Context)¶
Refresh the Power BI Dataset
- property hook: PowerBIHook¶
Create and return an PowerBIHook (cached).