[zeromq-dev] Poll on sockets OR child process

Greg Ward greg at gerg.ca
Wed Nov 27 20:23:33 CET 2013

Hi all --

I'm hacking on a task distribution system used internally here. It has
N masters sending tasks (shell commands) out to M workers, and then
doing stuff with the results. There's something that annoys me
slightly about the implementation: the worker runs each task in a
separate thread.

IMHO it would be ever so much nicer to just spawn the child process
that runs a task, and harvest the results when they are ready. IOW, I
want to integrate wait() and zmq_poll() in a single event loop.

Is there any sane way to do this? (The whole system is written in
Python, using zeromq-3.2.3 and pyzmq 13.1.0.)

Thanks --


More information about the zeromq-dev mailing list