Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
sun
Commits
c1b34ad4
Commit
c1b34ad4
authored
Feb 27, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加celery配置
parent
65d308ac
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
3 deletions
+26
-3
_celery.py
_celery.py
+20
-0
channel_build.py
api/channel_build.py
+1
-1
__init__.py
api/tasks/__init__.py
+1
-0
tasks.py
api/tasks/tasks.py
+0
-0
requirements.txt
requirements.txt
+4
-2
No files found.
_celery.py
0 → 100644
View file @
c1b34ad4
# !/usr/bin/env python
# encoding=utf-8
from
__future__
import
absolute_import
import
os
from
celery
import
Celery
from
django.conf
import
settings
# set the default Django settings module for the 'celery' program.
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'sun.settings'
)
app
=
Celery
(
'sun_tasks'
)
# Using a string here means the worker will not have to
# pickle the object when using Windows.
app
.
config_from_object
(
'django.conf:settings'
)
app
.
autodiscover_tasks
(
lambda
:
settings
.
INSTALLED_APPS
)
api/channel_build.py
View file @
c1b34ad4
...
...
@@ -7,7 +7,7 @@ from helios.rpc.exceptions import RPCFaultException
from
utils.base
import
APIView
from
utils.channel_package_tools
import
ChannelPackage
from
utils.logger
import
error_logger
from
utils.channel_task
import
version_release_task
,
channel_build
,
channel_build_one
from
.tasks
import
version_release_task
,
channel_build
,
channel_build_one
def
get_md5_value
(
src
):
...
...
api/tasks/__init__.py
0 → 100644
View file @
c1b34ad4
from
.tasks
import
*
utils/channel_task
.py
→
api/tasks/tasks
.py
View file @
c1b34ad4
File moved
requirements.txt
View file @
c1b34ad4
...
...
@@ -16,4 +16,6 @@ git+ssh://git@git.wanmeizhensuo.com/alpha/alpha-types.git@master
filetype
==1.0.2
Pillow
==5.4.1
celery
==4.2.1
requests
==2.21.0
\ No newline at end of file
kombu
==4.2.2.post1
requests
==2.21.0
redis
==2.10.6
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment