Add Analyze Backlog button to WebUI
This commit is contained in:
@@ -616,5 +616,16 @@ async function queueTraderAnalysis(id) {
|
||||
}
|
||||
}
|
||||
|
||||
async function queueBacklogAnalysis() {
|
||||
const res = await fetch(`/api/jobs/analyze-backlog?take=50`, { method: 'POST' });
|
||||
if (res.ok) {
|
||||
const data = await res.json();
|
||||
alert(`Successfully queued ${data.queued} traders for analysis from backlog.`);
|
||||
loadJobs();
|
||||
} else {
|
||||
alert('Failed to queue backlog analysis.');
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize Dashboard
|
||||
loadDashboard();
|
||||
|
||||
Reference in New Issue
Block a user