Description
Add dag_id and map_index as default variables to the template variables (accessible via task parameters).
Use case/motivation
Generally useful and specifically easier access to these variables within operators that have serialization issues with the dag_run and ti objects, such as the PythonVirtualEnvOperator.
Related issues
Are you willing to submit a PR?
Code of Conduct