disabled some of the qm things for testing

This commit is contained in:
Boki 2025-07-01 12:51:54 -04:00
parent 06c65d6c2c
commit 710577eb3d
4 changed files with 14 additions and 14 deletions

View file

@ -5,9 +5,8 @@ import {
Operation,
ScheduledOperation,
} from '@stock-bot/handlers';
import type { DataIngestionServices } from '../../types';
import type { OperationRegistry } from '../../shared/operation-manager';
import { createQMOperationRegistry } from './shared/operation-provider';
import type { DataIngestionServices } from '../../types';
import {
checkSessions,
createSession,
@ -29,6 +28,7 @@ import {
updatePrices,
updateSymbolInfo
} from './actions';
import { createQMOperationRegistry } from './shared/operation-provider';
@Handler('qm')
export class QMHandler extends BaseHandler<DataIngestionServices> {
@ -99,7 +99,7 @@ export class QMHandler extends BaseHandler<DataIngestionServices> {
@Operation('update-symbol-info')
updateSymbolInfo = updateSymbolInfo;
// @Disabled()
@Disabled()
@ScheduledOperation('schedule-symbol-info-updates', '0 */6 * * *', {
priority: 7,
immediately: false,
@ -113,7 +113,7 @@ export class QMHandler extends BaseHandler<DataIngestionServices> {
@Operation('update-financials')
updateFinancials = updateFinancials;
// @Disabled()
@Disabled()
@ScheduledOperation('schedule-financials-updates', '0 2 * * *', {
priority: 6,
immediately: false,
@ -127,7 +127,7 @@ export class QMHandler extends BaseHandler<DataIngestionServices> {
@Operation('update-events')
updateEvents = updateEvents;
// @Disabled()
@Disabled()
@ScheduledOperation('schedule-events-updates', '0 3 * * *', {
priority: 6,
immediately: false,
@ -155,7 +155,7 @@ export class QMHandler extends BaseHandler<DataIngestionServices> {
@Operation('update-prices')
updatePrices = updatePrices;
// @Disabled()
@Disabled()
@ScheduledOperation('schedule-price-updates', '0 */6 * * *', {
priority: 8,
immediately: false,

View file

@ -42,7 +42,7 @@ export const QM_CONFIG = {
// Session management settings
export const SESSION_CONFIG = {
MAX_SESSIONS: 100,
MAX_SESSIONS: 5,
MAX_FAILED_CALLS: 5,
SESSION_TIMEOUT: 5000, // 10 seconds
API_TIMEOUT: 30000, // 15 seconds