From 96f774ce2498d6de5ccebaa6b080b3e6dec35d9a Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 19 Oct 2026 06:40:01 -0400 Subject: [PATCH] fix(syslog): chart marks give up after 10 s rather than waiting on (#6002) Co-Authored-By: Claude Opus 5.5 --- steward/static/chart-marks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/steward/static/chart-marks.js b/steward/static/chart-marks.js index aa4568d..d492777 100644 --- a/steward/static/chart-marks.js +++ b/steward/static/chart-marks.js @@ -60,7 +60,8 @@ // Fetch marks from `url` and put them on each chart, redrawing it; `note` // (an element, optional) says in words how many there are. window.stewardMarkCharts = function (url, charts, note) { - fetch(url, { credentials: 'same-origin' }) + // A deadline, so a slow answer leaves the charts unmarked rather than waiting on. + fetch(url, { credentials: 'same-origin', signal: AbortSignal.timeout(10000) }) .then(function (r) { return r.ok ? r.json() : { marks: [] }; }) .then(function (body) { var marks = body.marks || [];