Commit 085a4503 authored by lixiaofang's avatar lixiaofang

add

parent 1feb604f
......@@ -30,8 +30,9 @@ class Celery(Celery):
register_signal(client)
app = Celery('physical_tasks')
# app = Celery('physical_tasks')
app = Celery('physical')
# Using a string here means the worker will not have to
# pickle the object when using Windows.
......
......@@ -2,6 +2,3 @@ from django.shortcuts import render
# Create your views here.
from injection.data_sync import tasks
......@@ -6,7 +6,7 @@ from django.conf import settings
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'physical.settings')
app = Celery('physical')
app = Celery('physical',backend='redis',broker="redis://localhost")
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
......
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