mvfc opened a new pull request, #50001:
URL: https://github.com/apache/airflow/pull/50001

   ## Description
   This PR introduces deferrable versions of the Power BI workspace- and 
dataset-list operators in the Azure provider package. Instead of blocking a 
worker slot while calling the Power BI REST API, these operators now:
   
   - **Defer** execution using custom `BaseTrigger` implementations  
   - **Poll** asynchronously for the full list of workspaces or datasets  
   - **Resume** execution once data is available and push IDs into XCom  
   
   ### New Hook methods
   - `PowerBIHook.get_workspace_list()`  
   - `PowerBIHook.get_dataset_list(group_id: str)`
   
   ### New Trigger classes
   - `PowerBIWorkspaceListTrigger`  
   - `PowerBIDatasetListTrigger`
   
   ### New Operator classes
   - `PowerBIWorkspaceListOperator`  
   - `PowerBIDatasetListOperator`
   
   ### Unit tests
   - Trigger serialization (`serialize()`)  
   - Trigger run logic (success and error paths)  
   - Operator deferral (`TaskDeferred`)  
   - Operator resume handling (`execute_complete`)  
   - XCom key/value assertions  
   
   ## Motivation and Context
   Long-running or paginated API calls can occupy a worker slot for tens of 
seconds or more, limiting concurrency and throughput. By deferring:
   
   1. We free up the worker while waiting on Power BI.  
   2. We align with Airflow’s best practices for asynchronous I/O.  
   3. We make scaling in high-volume environments more efficient.
   
   This change complements existing synchronous operators; it does not remove 
or alter any blocking behavior, giving users the choice.
   
   ## How Has This Been Tested?
   - 🧪 **Automated tests** under `tests/providers/microsoft/azure/` covering 
all new code paths.  
   - 🔄 **Manual end-to-end DAG** against a real Power BI service principal.  
   - ✅ Verified that XCom payloads contain the correct ID lists on resume.  
   - ✅ Verified appropriate error handling and retries in failure cases.
   
   ## Documentation
   - Added `howto/operator:PowerBIWorkspaceListOperator` and 
`howto/operator:PowerBIDatasetListOperator` pages.  
   - Updated Azure provider README to mention the new deferrable operators.
   
   ## Backwards-Incompatible Changes?
   No. Existing synchronous `PowerBIHook` methods and operators remain 
unchanged and fully supported.
   
   ## New Dependencies?
   None. All new code relies on existing Airflow and Azure provider 
infrastructure.
   
   


-- 
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]

Reply via email to