What is the best way to accomplish the following pipeline in python using subprocess:
- run three script files python1_a.py, python1_b.py, python1_c.py in parallel
- If no errors have been raised, run python2.py
- If no errors have been raised, run python3.py
Also I'd want to pass arguments through argprase.
Note: there are print statements in those files to expose progress - what is the best way to log them ?
If you can answer with an example code would be great