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
Correct, this is a caveat of the serializing that execnet provides. If you need to continuously receive output, you should look at remoto/log.py and how it is used in remoto/process.py
I see, my general thoughts on this could be that the function/module could reuse channel to send back (instead of yield), but then ModuleExecute wrapper only does a single channel.receive(). I find it difficult to find consistent documentation on execnet's channel.receive functionality, but maybe it's possible to tell when channel is closed/finished?
Currently trying to run a function that yields results (is a generator), doesn't work.
Remote function file
foo.py
:Execution code:
Received output after executing last line in Execution code:
RuntimeError: DumpError: can't serialize <class 'generator'>
Is there a possible workflow for receiving continuous output from remote function?
The text was updated successfully, but these errors were encountered: