Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces_es6
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
graces_es6
Commits
b7b9b9c4
Commit
b7b9b9c4
authored
Nov 03, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新es的配置
parent
a79b414e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tasks.py
injection/data_sync/tasks.py
+3
-0
No files found.
injection/data_sync/tasks.py
View file @
b7b9b9c4
...
...
@@ -13,6 +13,9 @@ from rpc.all import get_rpc_remote_invoker
@shared_task
@thread_local
(
DB_FOR_READ_OVERRIDE
=
settings
.
DBMW_SLAVE_DB_NAME
)
def
write_to_es
(
es_type
,
pk_list
,
configuration
,
use_batch_query_set
=
False
,
es_config
=
None
):
if
es_type
in
[
"service"
,
'sku'
]:
es_config
=
False
pk_list
=
list
(
frozenset
(
pk_list
))
type_info_map
=
get_type_info_map
()
type_info
=
type_info_map
[
es_type
]
...
...
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