I would like to use a Dask delayed
task to call an external program, which outputs it's progress to STDOUT
. In the delayed
, I plan to monitor the STDOUT
and would like to update the Client
process that is waiting for the delayed
task with progress information extracted from the STDOUT
. Is there a recommended way for a delayed
task to communicate with its Client
processes, or do I need to roll my own?
You could achieve this kind of flow with any of the coordination primitives or actors provided by dask. From your description, the Queue or pubsub mechanisms seem like they might be favourite. You should note that all of these are generally means for low-frequency and low-volume communications.