Add ForwardOutput worker plugin to forward stdout and stderr to client.
#7297
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a
ForwardOutputworker plugin that forwards all output fromstdoutandstderron all workers to all clients using the internals implemented fordistributed.worker.print. This plugin is not intended for chatty workloads and may put significant load on the scheduler.Note that this plugin is related to #7276 but takes a slightly different route as it tries to avoid adding additional client methods that start to bloat the client interface. This comes at the cost of forwarding to all clients. This is the same behavior that we already have with
distributed.print(). Unless somebody is particularly interested in using this plugin in a multi-client environment, I would leave this as is until we have added client plugins that allow adding functionality on the client without the need for dedicated methods.pre-commit run --all-files