Increase backstop queue timeouts across the app

This commit is contained in:
Scott Nonnenberg 2022-06-27 09:46:43 -07:00 committed by GitHub
parent c28313bd0c
commit 4568527232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 47 additions and 23 deletions

View file

@ -53,6 +53,7 @@ import * as log from './logging/log';
import { singleProtoJobQueue } from './jobs/singleProtoJobQueue';
import * as Errors from './types/errors';
import MessageSender from './textsecure/SendMessage';
import { MINUTE } from './util/durations';
const TIMESTAMP_THRESHOLD = 5 * 1000; // 5 seconds
@ -533,7 +534,7 @@ export class SignalProtocolStore extends EventsMixin {
private _createSenderKeyQueue(): PQueue {
return new PQueue({
concurrency: 1,
timeout: 1000 * 60 * 2,
timeout: MINUTE * 30,
throwOnTimeout: true,
});
}
@ -702,7 +703,7 @@ export class SignalProtocolStore extends EventsMixin {
private _createSessionQueue(): PQueue {
return new PQueue({
concurrency: 1,
timeout: 1000 * 60 * 2,
timeout: MINUTE * 30,
throwOnTimeout: true,
});
}