mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-04 12:58:11 +03:00
Close the score import redis queue on shutdown/endtests
This commit is contained in:
@@ -2,10 +2,12 @@ import { CloseMongoConnection } from "external/mongo/db";
|
||||
import { CloseRedisPubSub } from "external/redis/redis-IPC";
|
||||
import { CloseRedisConnection } from "external/redis/redis";
|
||||
import { CloseServerConnection } from "./mock-api";
|
||||
import { CloseScoreImportQueue } from "lib/score-import/worker/queue";
|
||||
|
||||
export async function CloseAllConnections() {
|
||||
await CloseMongoConnection();
|
||||
await CloseServerConnection();
|
||||
await CloseRedisConnection();
|
||||
await CloseRedisPubSub();
|
||||
await CloseScoreImportQueue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user