You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/26 13:36:21 UTC

[GitHub] [airflow] uranusjr commented on issue #24388: Unable to access operator attrs within Jinja context for mapped tasks

uranusjr commented on issue #24388:
URL: https://github.com/apache/airflow/issues/24388#issuecomment-1258055457

   The `mapped_kwargs` attribute is intended to be private and is subject to breakages. The equivalent in 2.4 is `task.expand_input.value`.
   
   The fix has been included in #26100. Once that’s merged (to main and released in 2.5), I plan to write up a patch to backport the behaviour to 2.4, so `task` points to the _unmapped_ operator instead to allow users to simply access the attribute directly. If this means a lot to you, feel free to do the backporting yourself—the relevant part is adding `context_update_for_unmapped` and calling it at the correct place.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org