Commit 4e646f3f authored by lixiaofang's avatar lixiaofang

add

parent 69b5b059
...@@ -3,9 +3,9 @@ import traceback ...@@ -3,9 +3,9 @@ import traceback
import logging import logging
from celery import shared_task from celery import shared_task
login_url = "http://earth.igengmei.com/api/account/login_pwd" login_url = "http://earth.igengmei.com/api/account/login_pwd"
def index_first(): def index_first():
try: try:
r1 = requests.get(login_url) r1 = requests.get(login_url)
...@@ -16,9 +16,10 @@ def index_first(): ...@@ -16,9 +16,10 @@ def index_first():
return None return None
@shared_task(name="majia.tasks.get_cook") @shared_task(name="majia.tasks.get_cook")
def get_cook(): def get_cook():
data = open("physical/majia/majia_email.txt","r") data = open("physical/majia/majia_email.txt", "r")
list = [] list = []
dicts = {} dicts = {}
......
...@@ -9,12 +9,12 @@ class CeleryTaskRouter(object): ...@@ -9,12 +9,12 @@ class CeleryTaskRouter(object):
"tapir-alpha": [ "tapir-alpha": [
'injection.data_sync.tasks.write_to_es', 'injection.data_sync.tasks.write_to_es',
], ],
# "majia-alpha": [ "majia-alpha": [
# 'injection.data_sync.auto_instant_click.auto_click', 'injection.data_sync.auto_instant_click.auto_click',
# ], ],
# "majia-alpha": [ "majia-alpha": [
# 'injection.data_sync.auto_instant_click.auto_reply', 'injection.data_sync.auto_instant_click.auto_reply',
# ] ]
} }
......
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