Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2025-11-20 02:31:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3eff6b06c5db756e46d25c3dadd2181757f74439
3eff6b06
1 parent
994477fd
Displays Information above DEBUG
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
templates/index.html
templates/index.html
View file @
3eff6b0
...
...
@@ -4208,6 +4208,7 @@
let
reportTaskId
=
null
;
let
reportPollingInterval
=
null
;
let
reportEventSource
=
null
;
let
reportLogRefreshInterval
=
null
;
// 日志刷新定时器
let
reportAutoPreviewLoaded
=
false
;
let
reportStreamReconnectTimer
=
null
;
let
reportStreamRetryDelay
=
3000
;
...
...
@@ -4920,6 +4921,14 @@
updateReportStreamStatus
(
'connected'
);
appendReportStreamLine
(
isRetry
?
'SSE重连成功'
:
'Report Engine流式连接已建立'
,
'success'
,
{
badge
:
'SSE'
});
startStreamHeartbeat
();
// 启动日志刷新定时器,每1秒刷新一次日志
if
(
reportLogRefreshInterval
)
{
clearInterval
(
reportLogRefreshInterval
);
}
reportLogRefreshInterval
=
setInterval
(()
=>
{
refreshReportLog
();
},
1000
);
// 每1秒刷新一次
};
reportEventSource
.
onerror
=
()
=>
{
appendReportStreamLine
(
'检测到网络抖动,SSE正在等待自动重连...'
,
'warn'
,
{
badge
:
'SSE'
});
...
...
@@ -4946,6 +4955,11 @@
clearTimeout
(
reportStreamReconnectTimer
);
reportStreamReconnectTimer
=
null
;
}
// 清除日志刷新定时器
if
(
reportLogRefreshInterval
)
{
clearInterval
(
reportLogRefreshInterval
);
reportLogRefreshInterval
=
null
;
}
clearStreamHeartbeat
();
if
(
!
keepIndicator
)
{
updateReportStreamStatus
(
'idle'
);
...
...
Please
register
or
login
to post a comment