I am new to xcoms in airflow and unable to get exact information , we have an ssh operator task as below with "echo" command
task_id = SSHOperator(
task_id="task_id",
ssh_conn_id="CONNECTION_ID",
command="echo Failed"
)
is there any way to capture the above task output to a variable like
variablea = "Failed"
Any suggestion pls.. I tried xcom push=True but it is displaying blank value..
from how to capture SSH operator output to a variable in airflow using xcoms or any other way
No comments:
Post a Comment