You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aakcht (via GitHub)" <gi...@apache.org> on 2023/02/15 20:00:15 UTC

[GitHub] [airflow] Aakcht commented on pull request #29347: SSH Provider: Add cmd_timeout to ssh connection extra

Aakcht commented on PR #29347:
URL: https://github.com/apache/airflow/pull/29347#issuecomment-1431948430

   @ferruzzi I'd say that this PR is about the timeout for waiting for command reply. For example, consider the command 
   ```bash
   sleep 10
   ``` 
   (as actually used in the tests for this PR). If `cmd_timeout`>10, the command should execute successfully, if `cmd_timeout`<10 it'll fail.
    <br /> 
    <br /> 
   But this PR doesn't actually add this `cmd_timeout` and instead fixes a bit different problem. The `cmd_timeout` was already added before (in #27184), but only for SSH hook/operator. In that previous PR the `cmd_timeout` value was set by default to 10 seconds (instead of "no timeout" which was the previous behavior). 
   
   So this PR fixes two issues that appeared after #27184:
   
   1) It adds possibility to configure `cmd_timeout` not only in SSH hook/SSH operator, but also in SSH connection(so now you don't have to modify your DAG code to set it).
   2) It adds possibility to set it to `''` in SSH connection which means "no timeout" and restore the behavior that was in place before #27184.
   


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