Reputation: 4788
Since we upgraded airflow from v1.8.1 to v1.10.1 the ssh command that is executed by the SSHOperator is not showing in the logs anymore. now you have the log;
Subtask: Output:
<the output of your ssh command>
before you got the command + the output of the executed command. Before you had the log;
Subtask: Running command: <your ssh command>
Subtask: Output:
<the output of your ssh command>
any help on making the SSHOperator log the command again? it's good to have the command in the logs to debug your task.
Upvotes: 0
Views: 1229
Reputation: 7815
The command
parameter of the SSHOperator
is templated, so its value is saved by Airflow on every task run for debugging purposes.
When you are viewing the task-instance's log in the Airflow UI, there is a button "Rendered Template". Click on it and you will see the value of the command
parameter for this task instance.
Upvotes: 2