We have an app that is using a fairly simple stack (Linux, PHP, Oracle, Shell Scripts, etc).
We have a series of scripts that need to be executed:
The dependency rules are as follows:
- app1 must be run first
- app2 then must be run next
- app3 and app4 can be run in parallel
That being said, I am looking to capture the following from ALL scripts:
- exit codes (used to determine success of failure / breakage of chain)
- standard out and/or standard error
The solution does not necessarily have to be written in PHP, it just has to work. Node.js / io.js is part of our build stack so we are comfortable building there.
Basically the parallelism is the real challenge that I see. What is the best approach to this problem while satisfying all of the requirements?