Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_monitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4eb51347
authored
Aug 05, 2023
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
a5a2b9e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
crawler_process.py
crawler_process.py
View file @
4eb51347
...
@@ -25,6 +25,7 @@ dashboard = MySqlOperator('dashboard')
...
@@ -25,6 +25,7 @@ dashboard = MySqlOperator('dashboard')
def
get_process_task
(
task_code
):
def
get_process_task
(
task_code
):
keys
=
task_redis
.
keys
(
task_code
+
'_*'
)
keys
=
task_redis
.
keys
(
task_code
+
'_*'
)
print
(
keys
)
keys_len
=
sum
([
task_redis
.
llen
(
k
)
for
k
in
keys
])
keys_len
=
sum
([
task_redis
.
llen
(
k
)
for
k
in
keys
])
abnormal_keys
=
task_redis
.
keys
(
'abnormal_'
+
task_code
+
'_*'
)
abnormal_keys
=
task_redis
.
keys
(
'abnormal_'
+
task_code
+
'_*'
)
abnormal_keys_len
=
sum
([
task_redis
.
llen
(
k
)
for
k
in
abnormal_keys
])
abnormal_keys_len
=
sum
([
task_redis
.
llen
(
k
)
for
k
in
abnormal_keys
])
...
...
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