Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
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
backend
crawler
Commits
07c010d6
Commit
07c010d6
authored
Aug 10, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
32ad8f2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
search_page_multi_process.py
crawler_sys/framework/search_page_multi_process.py
+2
-3
No files found.
crawler_sys/framework/search_page_multi_process.py
View file @
07c010d6
...
...
@@ -33,8 +33,7 @@ es_framework = Elasticsearch(hosts='192.168.17.11', port=80,
# doc_type_target_releaser = 'keywrod'
if
ARGS
.
platform
!=
[]:
PLATFORM_LIST
=
ARGS
.
platform
PLATFORM_LIST
=
ARGS
.
platform
OUTPUT_TO_ES_RAW
=
ARGS
.
output_to_es_raw
OUTPUT_TO_ES_REGISTER
=
ARGS
.
output_to_es_register
...
...
@@ -2713,7 +2712,7 @@ kwargs_dict = {
'es_index'
:
ES_INDEX
,
}
pool
=
Pool
(
processes
=
4
)
pool
=
Pool
(
processes
=
3
)
for
platform
in
PLATFORM_LIST
:
search_page_task
(
platform
,
OUTPUT_TO_ES_RAW
,
OUTPUT_TO_ES_REGISTER
,
ES_INDEX
)
res
=
pool
.
apply_async
(
func
=
search_page_task
,
...
...
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