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
65ab6c25
Commit
65ab6c25
authored
Nov 15, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
52420c09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spark_streaming_monitor.py
eda/smart_rank/spark_streaming_monitor.py
+1
-1
No files found.
eda/smart_rank/spark_streaming_monitor.py
View file @
65ab6c25
...
...
@@ -16,7 +16,7 @@ while True:
with
open
(
log_path
+
"user_portrait_tag_name_increment_update_"
+
today
+
".log"
,
"a"
)
as
f
:
is_email
=
0
for
batch
in
batchs_info
:
if
is_email
==
0
and
'totalDelay'
in
batch
and
batch
[
'totalDelay'
]
>
10
000
:
if
is_email
==
0
and
'totalDelay'
in
batch
and
batch
[
'totalDelay'
]
>
2
000
:
batch_time
=
batch
[
'batchTime'
]
GMT_FORMAT
=
'
%
Y-
%
m-
%
dT
%
H:
%
M:
%
S.000GMT'
batch_time_beijing
=
datetime
.
datetime
.
strptime
(
batch_time
,
GMT_FORMAT
)
+
datetime
.
timedelta
(
hours
=
8
)
...
...
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