示例#1
0
 def run_(self):
     os.environ['CKAN_CONFIG'] = os.path.abspath(self.options.config)
     from ckan.lib.celery_app import celery
     celery_args = []
     if len(self.args) == 2 and self.args[1] == 'concurrency':
         celery_args.append['--concurrency=1']
     celery.worker_main(argv=['celeryd', '--loglevel=INFO'] + celery_args)
示例#2
0
文件: cli.py 项目: abulte/ckan
 def run_(self):
     os.environ['CKAN_CONFIG'] = os.path.abspath(self.options.config)
     from ckan.lib.celery_app import celery
     celery_args = []
     if len(self.args) == 2 and self.args[1] == 'concurrency':
         celery_args.append['--concurrency=1']
     celery.worker_main(argv=['celeryd', '--loglevel=INFO'] + celery_args)
示例#3
0
文件: cli.py 项目: arkka/ckan
 def run_(self):
     os.environ['CKAN_CONFIG'] = os.path.abspath(self.options.config)
     from ckan.lib.celery_app import celery
     celery.worker_main(argv=['celeryd', '--loglevel=INFO'])