代码拉取完成,页面将自动刷新
同步操作将从 刘一弘/gx5thgroup 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# encoding: utf-8
from __future__ import absolute_import, unicode_literals
import os
from celery import Celery, signals
from django.utils.log import configure_logging
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meeting.settings')
def configure_logger(conf=None, **kwargs):
from django.conf import settings
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
signals.worker_process_init.connect(configure_logger)
signals.beat_init.connect(configure_logger)
app = Celery('meeting')
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
# - namespace='CELERY' means all celery-related configuration keys
# should have a `CELERY_` prefix.
app.config_from_object('django.conf:settings', namespace='CELERY')
# Load task modules from all registered Django app configs.
app.autodiscover_tasks()
@app.task(bind=True)
def _async_call(self, func, args, kwargs):
return func(*args, **kwargs)
def async_call(func, *args, **kwargs):
return _async_call.apply_async((func, args, kwargs), time_limit=3600, soft_time_limit=3600)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。