This commit is contained in:
cuixiao174 2026-05-28 17:38:51 -04:00 committed by GitHub
commit 6cb9eed71c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View File

@ -513,6 +513,7 @@ const fetchRunStatus = async () => {
// runner_status // runner_status
const isCompleted = data.runner_status === 'completed' || data.runner_status === 'stopped' const isCompleted = data.runner_status === 'completed' || data.runner_status === 'stopped'
const isFailed = data.runner_status === 'failed'
// runner_status // runner_status
// twitter_completed reddit_completed // twitter_completed reddit_completed
@ -526,6 +527,11 @@ const fetchRunStatus = async () => {
phase.value = 2 phase.value = 2
stopPolling() stopPolling()
emit('update-status', 'completed') emit('update-status', 'completed')
} else if (isFailed) {
addLog(t('log.simFailed') + (data.error ? `: ${data.error}` : ''))
phase.value = 2
stopPolling()
emit('update-status', 'error')
} }
} }
} catch (err) { } catch (err) {

View File

@ -537,6 +537,7 @@
"stopException": "Stop error: {error}", "stopException": "Stop error: {error}",
"allPlatformsCompleted": "✓ All platform simulations have ended", "allPlatformsCompleted": "✓ All platform simulations have ended",
"simCompleted": "✓ Simulation completed", "simCompleted": "✓ Simulation completed",
"simFailed": "✗ Simulation failed",
"reportRequestSent": "Report generation request sent, please wait...", "reportRequestSent": "Report generation request sent, please wait...",
"startingReportGen": "Starting report generation...", "startingReportGen": "Starting report generation...",
"reportGenTaskStarted": "✓ Report generation task started: {reportId}", "reportGenTaskStarted": "✓ Report generation task started: {reportId}",

View File

@ -537,6 +537,7 @@
"stopException": "停止异常: {error}", "stopException": "停止异常: {error}",
"allPlatformsCompleted": "✓ 检测到所有平台模拟已结束", "allPlatformsCompleted": "✓ 检测到所有平台模拟已结束",
"simCompleted": "✓ 模拟已完成", "simCompleted": "✓ 模拟已完成",
"simFailed": "✗ 模拟失败",
"reportRequestSent": "报告生成请求已发送,请稍候...", "reportRequestSent": "报告生成请求已发送,请稍候...",
"startingReportGen": "正在启动报告生成...", "startingReportGen": "正在启动报告生成...",
"reportGenTaskStarted": "✓ 报告生成任务已启动: {reportId}", "reportGenTaskStarted": "✓ 报告生成任务已启动: {reportId}",