I usually recommend the majordomo pattern for work of this nature. It isn't a perfect fit, but you could modify the "broker" piece pretty easily to keep track of tasks and reissue them after a timeout. It's a good foundation to start from.
cr On Sep 9, 2013, at 8:16 AM, R <[email protected]> wrote: > Hello folks, > > I am new to zmq and was implementing the "basic reliable queuing" pattern to > distribute work across multiple workers. The workers are intended to do a > task that could take several minutes once kicked off. > > I wanted to maintain a list of tasks and workers in the queue so that if a > worker has crashed/is unresponsive for an hour(or so) I can send the task to > another worker. I will have the worker notify the queue once a task is > complete so that the task is taken out of the queue. > > Is there a better pattern to do this. > > Thanks a lot. > > R > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
