nornir-automation / nornir

Pluggable multi-threaded framework with inventory management to help operate collections of devices
https://nornir.readthedocs.io/
Apache License 2.0
1.38k stars 234 forks source link

Make MultiResult picklable by adding getstate and setstate magic methods #859

Open dlobato opened 11 months ago

dlobato commented 11 months ago

I was trying to build a multiprocess runner and I came across the issue that MultiResult can't be pickled. I believe that https://stackoverflow.com/questions/2049849/why-cant-i-pickle-this-object describes the issue.