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

@ -13,6 +13,7 @@ import { isOlderThan } from './util/timestamp';
import type { ConversationModel } from './models/conversations';
import type { StorageInterface } from './types/Storage.d';
import { getProfile } from './util/getProfile';
import { MINUTE } from './util/durations';
const STORAGE_KEY = 'lastAttemptedToRefreshProfilesAt';
const MAX_AGE_TO_BE_CONSIDERED_ACTIVE = 30 * 24 * 60 * 60 * 1000;
@ -77,7 +78,7 @@ export async function routineProfileRefresh({
const refreshQueue = new PQueue({
concurrency: 5,
timeout: 1000 * 60 * 2,
timeout: MINUTE * 30,
throwOnTimeout: true,
});
for (const conversation of conversationsToRefresh) {