Пример #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={}):
     SocketMultiprocess.__init__(self, zmq_transport,
                                 tornado_sockets=False, display=display,
                                 context=context, io_threads=io_threads,
                                 db_num=db_num, group_id=group_id,
                                 connection_info=connection_info)
     from tasks.models import MultiprocessTask
     MultiprocessTask.set_environment(self)
Пример #2
0
 def __init__(self,
              zmq_transport=None,
              tornado_sockets=None,
              display=None,
              context=None,
              io_threads=None,
              db_num=0,
              group_id='',
              connection_info={}):
     SocketMultiprocess.__init__(self,
                                 zmq_transport,
                                 tornado_sockets=False,
                                 display=display,
                                 context=context,
                                 io_threads=io_threads,
                                 db_num=db_num,
                                 group_id=group_id,
                                 connection_info=connection_info)
     from tasks.models import MultiprocessTask
     MultiprocessTask.set_environment(self)
Пример #3
0
def simple_environment():
    """Set the environment to the simple environment."""
    s = SimpleCall()
    from tasks.models import MultiprocessTask
    MultiprocessTask.set_environment(s)