Allow real time interaction with output of executing processes#6
Allow real time interaction with output of executing processes#6gggeek wants to merge 2 commits into
Conversation
|
@gggeek Looks cool. |
gimler
left a comment
There was a problem hiding this comment.
I need to modify the command based on the previous finished. So i would prefer to add events. Before and after.
But this would add a dependency to event-dispatcher.
@jagandecapri what do you think?
| * @param Callable $callback takes 3 args: $type, $buffer, $process | ||
| */ | ||
| public function runParallel(array $processes, $maxParallel, $poll = 1000) | ||
| public function runParallel(array $processes, $maxParallel, $poll = 1000, $callback = null)) |
There was a problem hiding this comment.
Hello @gimler, thanks for your work. Your goal here is to "modify the command based on the previous finished". It looks like you are trying to accomplish a sequential process execution. This simple wrapper was meant for parallel processing. Let me know if there is something that I am missing from my understanding.
There was a problem hiding this comment.
Actually i have 4 phantomjs instances and n testcases. Each phantom has his own port and should only execute one test a time.
So i must manipulate the command before when i know which phantom instance is free.
Actually i have three events before after and processing.
No description provided.