Commit 6e60680a authored by 张永's avatar 张永

修改celery配置

parent eeb52190
......@@ -2,5 +2,5 @@
# -*- coding: utf-8 -*-
# __author__ = "chenwei"
# Date: 2018/11/15
from _celery import app as celery_app
......@@ -162,7 +162,7 @@ class Channel(APIView):
error_logger.error('操作失败%s', e)
return self.write_fail(message='操作失败', code=-1)
version = resp.get('version', '')
if version:
if version and not channel_id:
channel_build_one.delay(version, url_name)
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