moved proxy redis init to app start
This commit is contained in:
parent
ebd8c94e70
commit
26eaaa6d61
2 changed files with 30 additions and 16 deletions
|
|
@ -7,6 +7,7 @@ import { Hono } from 'hono';
|
|||
import { onShutdown, setShutdownTimeout } from '@stock-bot/shutdown';
|
||||
import { queueManager } from './services/queue.service';
|
||||
import { initializeBatchCache } from './utils/batch-helpers';
|
||||
import { initializeProxyCache } from './providers/proxy.tasks';
|
||||
import {
|
||||
healthRoutes,
|
||||
queueRoutes,
|
||||
|
|
@ -40,6 +41,11 @@ async function initializeServices() {
|
|||
await initializeBatchCache();
|
||||
logger.info('Batch cache initialized');
|
||||
|
||||
// Initialize proxy cache - before queue service
|
||||
logger.info('Starting proxy cache initialization...');
|
||||
await initializeProxyCache();
|
||||
logger.info('Proxy cache initialized');
|
||||
|
||||
// Initialize queue service (Redis connections should be ready now)
|
||||
logger.info('Starting queue service initialization...');
|
||||
await queueManager.initialize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue