Read chat logs incrementally and drain retention (Refs #62)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { pruneHistory, pruneSampleHistory } from '../retention.js';
|
||||
import { drainRetention } from '../retention.js';
|
||||
import { collectFleetChat } from '../fleet/chat.js';
|
||||
import { runAutoscaling, pruneAutoscaling } from '../autoscaling/index.js';
|
||||
import { runRebalancing, pruneRebalancing } from '../rebalancing/index.js';
|
||||
@@ -64,7 +64,7 @@ function reconcileRequesters(): void {
|
||||
['rebalancing', 'Reconciling rebalance moves', runRebalancing],
|
||||
['game-files', 'Removing unused game files', cleanupControllerLibraries],
|
||||
['chat', 'Saving match chat', collectFleetChat],
|
||||
['retention', 'Cleaning expired history', async () => { pruneHistory(); pruneSampleHistory(); pruneAutoscaling(); pruneRebalancing(); }]
|
||||
['retention', 'Cleaning expired history', async () => { await drainRetention(); pruneAutoscaling(); pruneRebalancing(); }]
|
||||
];
|
||||
for (const [key, label, work] of requesters) {
|
||||
if (requesterFlights.has(key)) continue;
|
||||
|
||||
Reference in New Issue
Block a user