fix: increase background job progress retention to 6h, localStorage recovery to 8h
This commit is contained in:
@@ -1055,9 +1055,9 @@ export function ParcelSyncModule() {
|
||||
siruta: string;
|
||||
startedAt: string;
|
||||
};
|
||||
// Ignore jobs older than 2 hours
|
||||
// Ignore jobs older than 8 hours
|
||||
const age = Date.now() - new Date(saved.startedAt).getTime();
|
||||
if (age > 2 * 60 * 60 * 1000) {
|
||||
if (age > 8 * 60 * 60 * 1000) {
|
||||
localStorage.removeItem("parcel-sync:bg-job");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user