cleanup old init code on batcher
This commit is contained in:
parent
716c90060a
commit
9c072f91f1
3 changed files with 20 additions and 40 deletions
|
|
@ -6,6 +6,7 @@ import { loadEnvVariables } from '@stock-bot/config';
|
|||
import { Hono } from 'hono';
|
||||
import { onShutdown, setShutdownTimeout } from '@stock-bot/shutdown';
|
||||
import { queueManager } from './services/queue.service';
|
||||
import { initializeBatchCache } from './utils/batch-helpers';
|
||||
import {
|
||||
healthRoutes,
|
||||
queueRoutes,
|
||||
|
|
@ -34,6 +35,11 @@ async function initializeServices() {
|
|||
logger.info('Initializing data service...');
|
||||
|
||||
try {
|
||||
// Initialize batch cache FIRST - before queue service
|
||||
logger.info('Starting batch cache initialization...');
|
||||
await initializeBatchCache();
|
||||
logger.info('Batch 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