mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Add p-queue timeouts; fix search crash; improve promise rejection logging
This commit is contained in:
committed by
Josh Perez
parent
9f9ce91a9c
commit
bc3b61db1d
@@ -1347,7 +1347,11 @@ async function updateToSchemaVersion20(
|
||||
await instance.run('BEGIN TRANSACTION;');
|
||||
|
||||
try {
|
||||
const migrationJobQueue = new PQueue({ concurrency: 10 });
|
||||
const migrationJobQueue = new PQueue({
|
||||
concurrency: 10,
|
||||
timeout: 1000 * 60 * 5,
|
||||
throwOnTimeout: true,
|
||||
});
|
||||
// The triggers on the messages table slow down this migration
|
||||
// significantly, so we drop them and recreate them later.
|
||||
// Drop triggers
|
||||
|
||||
Reference in New Issue
Block a user