[future] 修改celery 使用eventlet 作为concurrent pool, 添加获取资产硬件信息的 初步接口

This commit is contained in:
Administrator
2016-10-28 17:28:32 +08:00
parent fd945513ac
commit 97d7e6cb9b
6 changed files with 49 additions and 21 deletions

View File

@@ -29,7 +29,7 @@ def start_django():
def start_celery():
os.chdir(apps_dir)
print('start celery')
subprocess.call('celery -A common worker -l info', shell=True)
subprocess.call('celery -A common worker -P eventlet -l info', shell=True)
def main():