1 Star 0 Fork 111

Evan / arkid-core

forked from 龙归科技 / arkid 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
celery_app.py 536 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨瀚 提交于 2020-04-22 16:39 . refactor(plugin): refactor plugins
'''
entrypoint of celery
'''
import os
from celery import Celery
from django.conf import settings
# 此时显式声明,从当前目录导入;否则会从三方库中导入
import oauth2_provider # pylint: disable=unused-import
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'oneid.settings')
app = Celery( # pylint: disable=invalid-name
'oneid',
include={
'tasksapp.tasks',
'ldap.sql_backend.scripts',
'plugins.crontab.tasks',
},
)
app.config_from_object(settings, namespace='CELERY')
Python
1
https://gitee.com/likeshe/arkid-core.git
git@gitee.com:likeshe/arkid-core.git
likeshe
arkid-core
arkid-core
master

搜索帮助