Hello,
I wanted to ask if there is an opportunity to specify the execution of commands in the terminal as a task ?
I tried to create a function inside which I just call the command I need using python.
It works great and logs, but I have no way of knowing if this task has failed with an error. Or not.
I can find out about this only by looking through the logs.
Copy code
rsync: [sender] write error: Broken pipe (32)
But python itself believes that the command has completed successfully )
j
Joshua Greenhalgh
06/14/2023, 9:53 AM
that task isn't actually calling the shell command though right? its just constructing a string?
Joshua Greenhalgh
06/14/2023, 10:03 AM
A library like sh might be helpful https://pypi.org/project/sh/ - you can capture stdout into a string and then log it
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.