Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
common_scripy
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
吴升宇
common_scripy
Commits
66ce2372
Commit
66ce2372
authored
Feb 07, 2021
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix txt
parent
960ce1bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
data_sync_alert.py
scripies/data_sync_alert.py
+2
-2
No files found.
scripies/data_sync_alert.py
View file @
66ce2372
...
...
@@ -32,7 +32,7 @@ def main():
"api_userextratocollege"
,
"api_doctor"
,
"api_person"
,
"social_userfollow"
,
"api_userinnerinfo"
,
"api_hospital"
,
"statistic_device"
,
"statistic_device_user"
,
"api_bdtransfer"
,
"
hera_bdtransfer_auto_assignor"
,
"
api_userextra"
,
"statistic_device_user"
,
"api_bdtransfer"
,
"api_userextra"
,
"api_userextratocollege"
]
...
...
@@ -58,7 +58,7 @@ def main():
print
(
table
,
my_num
,
pg_num
)
if
my_num
>
pg_num
:
delay_table_num
+=
1
msg
+=
"zhengxing.{}延迟的数据量为{}条记录
, mysql: {}, psql: {}"
.
format
(
table
,
my_num
-
pg_num
,
my_num
,
pg_num
)
msg
+=
"zhengxing.{}延迟的数据量为{}条记录
\n
, mysql: {}
\n
, pgsql: {};
\n
"
.
format
(
table
,
my_num
-
pg_num
,
my_num
,
str
(
pg_num
)
)
if
delay_table_num
>
0
:
msg
+=
"有{}张表存在延迟"
.
format
(
delay_table_num
)
...
...
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