New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback for exitCode #12
Conversation
The method chosen to do this was to add a configuration function $swarmProcess = new SwarmProcess($logger);
$swarmProcess->setCompletedCallback(function(Symfony\Component\Process\Process $process) {
// do something with the $process returned, checking it's exit code, and perhaps putting it back on the stack
}); |
@mostertb and @johnathanmdell would you mind having a look and telling me what your thoughts are? |
@sarelvdwalt I'm happy with that, nothing overly complicated to achieve some simple communication between the child and parent. 👍 |
@sarelvdwalt This looks great! Two things:
|
Thanks @mostertb
|
@mostertb I have updated the documentation. |
@mostertb and @johnathanmdell I have now moved the callback to the Configuration object. This object creation is also to plan for the future change planned for a setting to respect Process timeout settings. |
Addresses #11 to create a callback in userland for exitCodes returned by processes.