Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
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
宋柯
meta_base_code
Commits
afcfdaa6
Commit
afcfdaa6
authored
Dec 02, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c47972a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
celery_stats_monitor.py
celery_stats/celery_stats_monitor.py
+2
-2
No files found.
celery_stats/celery_stats_monitor.py
View file @
afcfdaa6
...
...
@@ -29,10 +29,10 @@ class Parse_data:
rate
=
len_data_diff
/
per_sec
if
len_data_diff
>
0
:
use_time
=
round
(
len_data
/
rate
/
60
/
60
,
1
)
return
"目前
队列中有{}条数据,预计{}小时后处理完成"
.
format
(
str
(
len_data
),
str
(
use_time
))
return
"目前
{}队列中有{}条数据,预计{}小时后处理完成"
.
format
(
key_name
,
str
(
len_data
),
str
(
use_time
))
else
:
if
abs
(
rate
)
>
0
:
return
"
队列快速增长中"
return
"
{}队列增长中,目前有{}条数据"
.
format
(
key_name
,
str
(
len_data
))
self
.
offset_dict
[
key_name
]
=
len_data
...
...
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