dabla commented on code in PR #55068:
URL: https://github.com/apache/airflow/pull/55068#discussion_r2316708582


##########
airflow-core/src/airflow/models/dagbag.py:
##########
@@ -633,6 +675,285 @@ def dagbag_report(self):
         return report
 
 
+class AsyncDagBag(DagBag):

Review Comment:
   Another more specific example with lambda (you could probably achieve the 
same with jinja but that doesn't change the rendering issue):
   
   ```
   get_data_task = MSGraphAsyncOperator(
               task_id="get_users",
               conn_id="msgraph",
               url="users/delta",
               query_parameters=lambda context, jinja_env: {
                   "$skiptoken": Variable.get(
                       "extraction.skiptoken", default_var=None
                   ),
                   "$deltatoken": Variable.get(
                       "extraction.deltatoken", default_var=None
                   ),
               },
           )
   ```
   
   Here we use a lambda to prevent the DAG processor to evaluate the variables 
during parsing.



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