Lee-W commented on code in PR #33296:
URL: https://github.com/apache/airflow/pull/33296#discussion_r1292163869


##########
docs/shared/template-examples/taskflow-kwargs.rst:
##########
@@ -0,0 +1,10 @@
+ .. code-block:: python
+
+    @task
+    def print_ti_info(**kwargs):
+        ti = kwargs['task_instance']

Review Comment:
   nitpick for consistency
   ```suggestion
           ti = kwargs["task_instance"]
   ```



##########
docs/shared/template-examples/taskflow-kwargs.rst:
##########
@@ -0,0 +1,10 @@
+ .. code-block:: python
+
+    @task
+    def print_ti_info(**kwargs):
+        ti = kwargs['task_instance']
+        print(f"Run ID: {ti.run_id}") # Run ID: 
scheduled__2023-08-09T00:00:00+00:00
+        print(f"Duration: {ti.duration}") # Duration: 0.972019
+
+        dr = kwargs['dag_run']

Review Comment:
   nitpick for consistency
   ```suggestion
           dr = kwargs['dag_run']
   ```



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