fix: increase background job progress retention to 6h, localStorage recovery to 8h

This commit is contained in:
AI Assistant
2026-03-08 01:59:09 +02:00
parent c43082baee
commit e57ca88e7e
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -293,8 +293,8 @@ async function runBackground(params: {
note,
});
unregisterJob(jobId);
// Keep progress visible for 1 hour (background jobs stay longer)
setTimeout(() => clearProgress(jobId), 3_600_000);
// Keep progress visible for 6 hours (background jobs can be very long)
setTimeout(() => clearProgress(jobId), 6 * 3_600_000);
} catch (error) {
const msg = error instanceof Error ? error.message : "Eroare necunoscută";
setProgress({
@@ -306,6 +306,6 @@ async function runBackground(params: {
message: msg,
});
unregisterJob(jobId);
setTimeout(() => clearProgress(jobId), 3_600_000);
setTimeout(() => clearProgress(jobId), 6 * 3_600_000);
}
}