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

   This PR adds support for dynamically mapping the `overrides` argument in 
`BatchOperator` via `.expand()`.
   
   Currently, attempting to call `.expand(overrides=[...])` on `BatchOperator` 
raises:
   TypeError: BatchOperator.expand() got an unexpected keyword argument 
'overrides'
   
   This happens because `overrides` is not listed in the operator's 
`template_fields`, and not handled for dynamic task mapping.
   
   - Adds `overrides` as a supported field in the constructor
   - Updates `template_fields` and `template_fields_renderers`
   - Uses the new overrides field (or falls back to container_overrides) when 
calling submit_job() with containerOverrides.
   
   Closes #50535
   


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