Esempio n. 1
0
def main():
    # Fix for setuptools generated scripts, so that it will
    # work with multiprocessing fork emulation.
    # (see multiprocessing.forking.get_preparation_data())
    if __name__ != "__main__":
        sys.modules["__main__"] = sys.modules[__name__]
    freeze_support()
    worker = WorkerCommand()
    worker.execute_from_commandline()
Esempio n. 2
0
def main():
    # Fix for setuptools generated scripts, so that it will
    # work with multiprocessing fork emulation.
    # (see multiprocessing.forking.get_preparation_data())
    if __name__ != "__main__":
        sys.modules["__main__"] = sys.modules[__name__]
    freeze_support()
    worker = WorkerCommand()
    worker.execute_from_commandline()
Esempio n. 3
0
 def run(self):
     freeze_support()
     kwargs = {}
     if self.options.daemon:
         kwargs['logfile'] = zenPath('log', 'zenjobs.log')
     kwargs['loglevel'] = self.options.logseverity
     kwargs["pool_cls"] = concurrency.get_implementation(
         kwargs.get("pool_cls") or self.celery.conf.CELERYD_POOL)
     return self.celery.Worker(**kwargs).run()
Esempio n. 4
0
 def run(self):
     freeze_support()
     kwargs = {}
     if self.options.daemon:
         kwargs['logfile'] = zenPath('log', 'zenjobs.log')
     kwargs['loglevel'] = self.options.logseverity
     kwargs["pool_cls"] = concurrency.get_implementation(
                 kwargs.get("pool_cls") or self.celery.conf.CELERYD_POOL)
     return self.celery.Worker(**kwargs).run()
Esempio n. 5
0
def celeryd():
    freeze_support()
    worker = WorkerCommand()
    worker.execute_from_commandline()
Esempio n. 6
0
def celeryd():
    freeze_support()
    worker = WorkerCommand()
    worker.execute_from_commandline()