Reduce timeout of some long running tasks
This commit is contained in:
parent
08f2a966a1
commit
3beccbfd31
3 changed files with 134 additions and 67 deletions
|
@ -17,6 +17,7 @@ import { HTTPError } from './textsecure/Errors';
|
|||
import createTaskWithTimeout, {
|
||||
suspendTasksWithTimeout,
|
||||
resumeTasksWithTimeout,
|
||||
reportLongRunningTasks,
|
||||
} from './textsecure/TaskWithTimeout';
|
||||
import type {
|
||||
MessageAttributesType,
|
||||
|
@ -995,6 +996,10 @@ export async function startApp(): Promise<void> {
|
|||
}
|
||||
}, FIVE_MINUTES);
|
||||
|
||||
setInterval(() => {
|
||||
reportLongRunningTasks();
|
||||
}, FIVE_MINUTES);
|
||||
|
||||
let mainWindowStats = {
|
||||
isMaximized: false,
|
||||
isFullScreen: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue