-
Notifications
You must be signed in to change notification settings - Fork 8
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
Access to worker stdout/stderr #82
Comments
Thanks for the feedback! I think this stdout should be shown on the terminal of the server, just like Distributed. You said that you can access this with Distributed adds |
To clarify, do you mean that this is how it currently works (which it doesn’t, as far as I can tell), or that the behavior should be changed to this in the future? function redirect_worker_output(ident, stream)
t = @async while !eof(stream)
line = readline(stream)
if startswith(line, " From worker ")
# stdout's of "additional" workers started from an initial worker on a host are not available
# on the master directly - they are routed via the initial worker's stdout.
println(line)
else
println(" From worker $(ident):\t$line")
end
end
errormonitor(t)
end The same could be done here, with |
It would be nice to have some control over where the worker’s
stdout
/stderr
goes. Currently, there is no (documented) way to access this, and output is just silently dropped. To some extent, this can be done viaWorker.proc
, but presumably this should not be relied on?The text was updated successfully, but these errors were encountered: