You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/04 07:56:55 UTC

[GitHub] [airflow] uranusjr commented on issue #28287: Testing tasks from CLI when using TaskFlowAPI is not working properly

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org