Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
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
rank
search_tips
Commits
b70d6065
Commit
b70d6065
authored
Jul 05, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删掉return和日志
parent
416bf260
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
tasks.py
injection/data_sync/tasks.py
+2
-3
celery_task_router.py
search_tips/celery_task_router.py
+0
-3
No files found.
injection/data_sync/tasks.py
View file @
b70d6065
...
...
@@ -38,6 +38,4 @@ def write_to_es(es_type, pk_list, use_batch_query_set=False):
)
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
finally
:
return
es_type
,
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
\ No newline at end of file
search_tips/celery_task_router.py
View file @
b70d6065
...
...
@@ -18,8 +18,6 @@ class CeleryTaskRouter(object):
for
(
queue
,
task_list
)
in
queue_task_map
.
items
()
))
logging
.
info
(
"task_queue_map:
%
s"
%
task_queue_map
)
def
route_for_task
(
self
,
task
,
args
=
None
,
kwargs
=
None
):
"""
if settings.DEBUG:
...
...
@@ -30,5 +28,4 @@ class CeleryTaskRouter(object):
"""
queue_name_or_none
=
self
.
task_queue_map
.
get
(
task
)
logging
.
info
(
"task_queue_map:
%
s"
%
queue_name_or_none
)
return
queue_name_or_none
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