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

   Arguments of a taskflow function are supplied by dependencies, so I think a 
better solution would be to solve the more general problem of supplying 
depended XComs to a task. This also applies to a classical operator:
   
   ```python
   @task
   def get_command():
       return "ls -l"
   
   # How can you test this?
   BashOperator(task_id="run", bash_command=get_command())
   ```


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