Exemplo n.º 1
0
 def __init__(self, zmq_transport=None, tornado_sockets=None,
              display=None, context=None, io_threads=None, db_num=0,
              group_id='', connection_info={}, mongodb_name=''):
     SocketMultiprocess.__init__(self, zmq_transport, tornado_sockets,
                                 display, context, io_threads, db_num,
                                 group_id, connection_info)
     from pyople.tasks.models import MultiprocessTask
     self.mongodb_name = mongodb_name
     self.connect_mongodb(mongodb_name)
     MultiprocessTask.set_environment(self)
     self.result_class = Result
Exemplo n.º 2
0
 def __init__(self, display=False, code='0', mongodb_name=''):
     zmq_transport = 'inproc'
     io_threads = 1
     tornado_sockets = True
     group_id = '0'
     self.running = False
     self.init_code = code
     db_num = 1
     context = None
     Worker.__init__(self, zmq_transport, tornado_sockets, display, context,
                     io_threads, db_num, group_id)
     self.result_class = DevResult
     from pyople.tasks.models import MultiprocessTask
     self.mongodb_name = mongodb_name
     self.connect_mongodb(mongodb_name)
     MultiprocessTask.set_environment(self)
Exemplo n.º 3
0
 def __init__(self, display=False, code='0', mongodb_name=''):
     zmq_transport = 'inproc'
     io_threads = 1
     tornado_sockets = True
     group_id = '0'
     self.running = False
     self.init_code = code
     db_num = 1
     context = None
     Worker.__init__(self, zmq_transport, tornado_sockets,
                                 display, context, io_threads, db_num,
                                 group_id)
     self.result_class = DevResult
     from pyople.tasks.models import MultiprocessTask
     self.mongodb_name = mongodb_name
     self.connect_mongodb(mongodb_name)
     MultiprocessTask.set_environment(self)
Exemplo n.º 4
0
 def __init__(self,
              zmq_transport=None,
              tornado_sockets=None,
              display=None,
              context=None,
              io_threads=None,
              db_num=0,
              group_id='',
              connection_info={},
              mongodb_name=''):
     SocketMultiprocess.__init__(self, zmq_transport, tornado_sockets,
                                 display, context, io_threads, db_num,
                                 group_id, connection_info)
     from pyople.tasks.models import MultiprocessTask
     self.mongodb_name = mongodb_name
     self.connect_mongodb(mongodb_name)
     MultiprocessTask.set_environment(self)
     self.result_class = Result