summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue/processors/ResyncChartsProcessorService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2024-12-17 10:37:29 -0500
committerHazelnoot <acomputerdog@gmail.com>2024-12-17 10:37:29 -0500
commit0b40f2734eff04e1719dc18fcbe70f2cfc97ee76 (patch)
tree7e418dcd64963d1a5c0f65721274e8606971c916 /packages/backend/src/queue/processors/ResyncChartsProcessorService.ts
parentmerge: upstream changes for 2024.11 (!742) (diff)
downloadsharkey-0b40f2734eff04e1719dc18fcbe70f2cfc97ee76.tar.gz
sharkey-0b40f2734eff04e1719dc18fcbe70f2cfc97ee76.tar.bz2
sharkey-0b40f2734eff04e1719dc18fcbe70f2cfc97ee76.zip
sync charts one-at-a-time to reduce database contention and timeouts
Diffstat (limited to 'packages/backend/src/queue/processors/ResyncChartsProcessorService.ts')
-rw-r--r--packages/backend/src/queue/processors/ResyncChartsProcessorService.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/backend/src/queue/processors/ResyncChartsProcessorService.ts b/packages/backend/src/queue/processors/ResyncChartsProcessorService.ts
index 570cdf9a75..46e1adf173 100644
--- a/packages/backend/src/queue/processors/ResyncChartsProcessorService.ts
+++ b/packages/backend/src/queue/processors/ResyncChartsProcessorService.ts
@@ -31,11 +31,9 @@ export class ResyncChartsProcessorService {
// TODO: ユーザーごとのチャートも更新する
// TODO: インスタンスごとのチャートも更新する
- await Promise.all([
- this.driveChart.resync(),
- this.notesChart.resync(),
- this.usersChart.resync(),
- ]);
+ await this.driveChart.resync();
+ await this.notesChart.resync();
+ await this.usersChart.resync();
this.logger.succ('All charts successfully resynced.');
}