Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
吴升宇
physical
Commits
409486df
Commit
409486df
authored
Feb 20, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
085a4503
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
_celery.py
_celery.py
+1
-1
celery.py
physical/celery.py
+1
-1
No files found.
_celery.py
View file @
409486df
...
@@ -32,7 +32,7 @@ class Celery(Celery):
...
@@ -32,7 +32,7 @@ class Celery(Celery):
# app = Celery('physical_tasks')
# app = Celery('physical_tasks')
app
=
Celery
(
'physical'
)
app
=
Celery
(
'physical
_tasks
'
)
# Using a string here means the worker will not have to
# Using a string here means the worker will not have to
# pickle the object when using Windows.
# pickle the object when using Windows.
...
...
physical/celery.py
View file @
409486df
...
@@ -6,7 +6,7 @@ from django.conf import settings
...
@@ -6,7 +6,7 @@ from django.conf import settings
# set the default Django settings module for the 'celery' program.
# set the default Django settings module for the 'celery' program.
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'physical.settings'
)
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'physical.settings'
)
app
=
Celery
(
'physical'
,
backend
=
'redis'
,
broker
=
"redis://localhost"
)
app
=
Celery
(
'physical'
)
# Using a string here means the worker doesn't have to serialize
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
# the configuration object to child processes.
...
...
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