You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be a nice follow-up to the recently revamped distributed.print() function, which is a drop-in replacement for the built-in print that task authors can use to selectively forward their print output from worker to client. Redirecting stdout/stderr as proposed here would be for cases where you want everything forwarded, regardless of whether you control the originating print/write calls. I suppose users should be aware that this could put a lot of performance pressure on the scheduler if there are a lot of writes to forward from a lot of workers.
I think it is a little different than #2033, which is asking to have stdout/stderr forwarded into a client-side python logger, rather than just forwarding to client-side stdout/stderr. I like the simplicity of simply forwarding to stdout/stderr, but if PR #7276 is merged, it would be pretty straightforward to forward to a logger, too, by re-using the "forwarded-log-record" topic introduced by that PR.
Activity
fjetter commentedon Nov 2, 2022
I think this is a duplicate of #2033
maxbane commentedon Nov 9, 2022
This would be a nice follow-up to the recently revamped
distributed.print()function, which is a drop-in replacement for the built-in print that task authors can use to selectively forward their print output from worker to client. Redirecting stdout/stderr as proposed here would be for cases where you want everything forwarded, regardless of whether you control the originating print/write calls. I suppose users should be aware that this could put a lot of performance pressure on the scheduler if there are a lot of writes to forward from a lot of workers.I think it is a little different than #2033, which is asking to have stdout/stderr forwarded into a client-side python logger, rather than just forwarding to client-side stdout/stderr. I like the simplicity of simply forwarding to stdout/stderr, but if PR #7276 is merged, it would be pretty straightforward to forward to a logger, too, by re-using the
"forwarded-log-record"topic introduced by that PR.