mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix(cassandra): shorten the read timeout below the rpc deadline (#2198)
This commit is contained in:
1 parent
b5496097d2
commit
f1400ae58e
4 files changed
+18
-4
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {setupGracefulShutdown} from '@fluxer/hono/src/Server';
|
||||
import {initCassandra, shutdownCassandra} from '@pkgs/cassandra/src/Client';
|
||||
import {BACKGROUND_READ_TIMEOUT_MS, initCassandra, shutdownCassandra} from '@pkgs/cassandra/src/Client';
|
||||
import {JetStreamConnectionManager} from '@pkgs/nats/src/JetStreamConnectionManager';
|
||||
import {getDefaultPostgresClient, initPostgres, shutdownPostgres} from '@pkgs/postgres/src/Client';
|
||||
import type {WorkerTaskHandler} from '@pkgs/worker/src/contracts/WorkerTask';
|
||||
@@ -168,6 +168,7 @@ export async function startWorkerMain(): Promise<void> {
|
||||
localDc: Config.cassandra.localDc,
|
||||
username: Config.cassandra.username || undefined,
|
||||
password: Config.cassandra.password || undefined,
|
||||
readTimeoutMs: BACKGROUND_READ_TIMEOUT_MS,
|
||||
});
|
||||
cassandraInitialized = true;
|
||||
Logger.info('Cassandra client initialised for worker backend');
|
||||
|
||||
Reference in new issue
Block a user