Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
ec1598ac
Commit
ec1598ac
authored
Nov 14, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b6d6a8ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
spark_streaming_monitor.py
eda/smart_rank/spark_streaming_monitor.py
+5
-0
No files found.
eda/smart_rank/spark_streaming_monitor.py
View file @
ec1598ac
...
@@ -4,6 +4,7 @@ import datetime
...
@@ -4,6 +4,7 @@ import datetime
from
tool
import
send_email
from
tool
import
send_email
while
True
:
while
True
:
try
:
result
=
requests
.
get
(
'http://192.144.193.19:4042/api/v1/applications/app-20191114103608-0697/streaming/batches'
)
result
=
requests
.
get
(
'http://192.144.193.19:4042/api/v1/applications/app-20191114103608-0697/streaming/batches'
)
batchs_info
=
result
.
json
()
batchs_info
=
result
.
json
()
...
@@ -23,3 +24,7 @@ while True:
...
@@ -23,3 +24,7 @@ while True:
is_email
=
1
is_email
=
1
f
.
write
(
'
%
s
\n
'
%
batch
)
f
.
write
(
'
%
s
\n
'
%
batch
)
time
.
sleep
(
1800
)
time
.
sleep
(
1800
)
except
:
send_email
(
"画像增量更新堆积时间"
,
"fail"
,
""
)
break
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