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
c7d23d6c
Commit
c7d23d6c
authored
4 years ago
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpate
parent
e5c6cb2c
master
litao
mr/develop/xiaohongshu
soyang
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
update_data_in_target_releasers_multi_process_by_date_from_redis.py
...a_in_target_releasers_multi_process_by_date_from_redis.py
+3
-1
No files found.
crawler_sys/framework/update_data_in_target_releasers_multi_process_by_date_from_redis.py
View file @
c7d23d6c
...
...
@@ -139,7 +139,8 @@ kwargs_dict = {
def
get_task_from_redis
():
while
True
:
try
:
now
=
datetime
.
datetime
.
now
()
print
(
'----------------------'
)
# now = datetime.datetime.now()
# if now.hour >= exit_hour:
# sys.exit()
res
=
rds_1
.
hgetall
(
"process_num"
)
...
...
@@ -174,6 +175,7 @@ def single_thead(processe,name):
end_time
=
int
(
now
.
timestamp
()
*
1e3
)
for
count
,
platform
in
enumerate
(
get_task_from_redis
()):
now
=
datetime
.
datetime
.
now
()
print
(
count
,
platform
)
try
:
count_false
=
0
releaser_dic_str
=
rds_1
.
blpop
(
platform
)
...
...
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