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
ddc8b80a
Commit
ddc8b80a
authored
4 years ago
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
221787d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
update_data_in_target_releasers_multi_process_by_date_from_redis.py
...a_in_target_releasers_multi_process_by_date_from_redis.py
+4
-2
No files found.
crawler_sys/framework/update_data_in_target_releasers_multi_process_by_date_from_redis.py
View file @
ddc8b80a
...
@@ -59,11 +59,11 @@ parser.add_argument('-index', '--es_index', default='crawler-data-raw', type=str
...
@@ -59,11 +59,11 @@ parser.add_argument('-index', '--es_index', default='crawler-data-raw', type=str
help
=
(
'assign a es_index to write into, default to crawler-data-raw'
))
help
=
(
'assign a es_index to write into, default to crawler-data-raw'
))
parser
.
add_argument
(
'-g'
,
'--output_to_es_register'
,
default
=
'True'
,
type
=
str
,
parser
.
add_argument
(
'-g'
,
'--output_to_es_register'
,
default
=
'True'
,
type
=
str
,
help
=
(
'Write data into es or not, default to True'
))
help
=
(
'Write data into es or not, default to True'
))
parser
.
add_argument
(
'-processes'
,
'--processes_num'
,
default
=
4
,
type
=
int
,
parser
.
add_argument
(
'-processes'
,
'--processes_num'
,
default
=
1
,
type
=
int
,
help
=
(
'Processes number to be used in multiprocessing'
))
help
=
(
'Processes number to be used in multiprocessing'
))
parser
.
add_argument
(
'-exit_hour'
,
'--exit_hour'
,
default
=
22
,
type
=
int
,
parser
.
add_argument
(
'-exit_hour'
,
'--exit_hour'
,
default
=
22
,
type
=
int
,
help
=
(
'Processes number to be used in multiprocessing'
))
help
=
(
'Processes number to be used in multiprocessing'
))
parser
.
add_argument
(
'-thead'
,
'--thead_num'
,
default
=
4
,
type
=
int
,
parser
.
add_argument
(
'-thead'
,
'--thead_num'
,
default
=
1
,
type
=
int
,
help
=
(
'thead_num number to be used in multiprocessing'
))
help
=
(
'thead_num number to be used in multiprocessing'
))
parser
.
add_argument
(
'-v'
,
'--video'
,
default
=
"False"
,
type
=
str
,
parser
.
add_argument
(
'-v'
,
'--video'
,
default
=
"False"
,
type
=
str
,
help
=
(
'Is or not run video_page_crawler'
))
help
=
(
'Is or not run video_page_crawler'
))
...
@@ -139,6 +139,8 @@ kwargs_dict = {
...
@@ -139,6 +139,8 @@ kwargs_dict = {
def
get_task_from_redis
():
def
get_task_from_redis
():
while
True
:
while
True
:
try
:
try
:
import
pdb
pdb
.
set_trace
()
print
(
'----------------------'
)
print
(
'----------------------'
)
# now = datetime.datetime.now()
# now = datetime.datetime.now()
# if now.hour >= exit_hour:
# if now.hour >= exit_hour:
...
...
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