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
alpha
physical
Commits
133098db
Commit
133098db
authored
6 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
4036b796
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
tasks.py
injection/data_sync/tasks.py
+6
-0
celery_task_router.py
physical/celery_task_router.py
+3
-3
No files found.
injection/data_sync/tasks.py
View file @
133098db
...
...
@@ -109,6 +109,12 @@ def sync_user_similar_score():
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
@shared_task
def
auto_majia_effect
(
pk_list
):
logging
.
info
(
"get -----auto_majia_effect----"
)
auto_click
(
pk_list
)
auto_reply
(
pk_list
)
def
auto_click
(
pk_list
):
logging
.
info
(
"get--------auto_click--------------:
%
s"
%
pk_list
)
...
...
This diff is collapsed.
Click to expand it.
physical/celery_task_router.py
View file @
133098db
...
...
@@ -10,9 +10,9 @@ class CeleryTaskRouter(object):
"tapir-alpha"
:
[
'injection.data_sync.tasks.write_to_es'
,
],
#
"majia-alpha": [
#
'injection.data_sync.tasks.auto_majia_effect',
#
],
"majia-alpha"
:
[
'injection.data_sync.tasks.auto_majia_effect'
,
],
}
# Map[TaskName, QueueName]
...
...
This diff is collapsed.
Click to expand it.
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