Commit 5abe0a4a authored by zhanglu's avatar zhanglu

Merge branch 'feature/channel_package_zy' into 'dev'

修改celery配置

See merge request !77
parents b14c1558 6e60680a
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# __author__ = "chenwei" # __author__ = "chenwei"
# Date: 2018/11/15 # Date: 2018/11/15
from _celery import app as celery_app
...@@ -162,7 +162,7 @@ class Channel(APIView): ...@@ -162,7 +162,7 @@ class Channel(APIView):
error_logger.error('操作失败%s', e) error_logger.error('操作失败%s', e)
return self.write_fail(message='操作失败', code=-1) return self.write_fail(message='操作失败', code=-1)
version = resp.get('version', '') version = resp.get('version', '')
if version: if version and not channel_id:
channel_build_one.delay(version, url_name) channel_build_one.delay(version, url_name)
return self.write_success(message='操作成功', data={}) return self.write_success(message='操作成功', data={})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment