Dev-iL commented on issue #43176:
URL: https://github.com/apache/airflow/issues/43176#issuecomment-2667826944

   **Idea**:
   When a task/operator has a templated input that the user specifies as a 
string, and it contains a template to pulls the xcom of exactly one task, 
suggest replacing it with the taskflowy output of the task itself. For example:
   
   ```python
   some_task = SomeOperator(task_id="some_task", ...)
   
   # Before:
   some_other_task = SomeOtherOperator(
       templated_field="{{ ti.xcom_pull(task_ids='some_task') }}",
   )
   
   # After:
   some_other_task = SomeOtherOperator(
       templated_field=some_task.output,
   )
   ```


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