josh-fell commented on issue #19071:
URL: https://github.com/apache/airflow/issues/19071#issuecomment-955626497


   > @josh-fell Thanks for your updates 😄
   > 
   > > In the meantime, can you try wrapping the command arg in str() and see 
if that is an acceptable workaround for you?
   > 
   > Although I tried to pass the value wrapped with `str()` to SSHOperator, 
the upstream task of it is not set. Do you know the workaround ?
   
   Have you tried setting the dependencies in the classic way? Something like:
   ```python
       command = build_command()
   
       ssh = SSHOperator(
           task_id='run_my_command',
           command=str(command),
           ssh_conn_id='default_conn',
           retries=0
       )
   
       command >> ssh
   ```
   


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