removing deprecations
This commit is contained in:
parent
fa67d666dc
commit
f6038d385f
21 changed files with 91 additions and 158 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import type { IServiceContainer } from '@stock-bot/types';
|
||||
import { getLogger } from '@stock-bot/logger';
|
||||
import type { IServiceContainer } from '@stock-bot/types';
|
||||
import {
|
||||
CreateExchangeRequest,
|
||||
CreateProviderMappingRequest,
|
||||
|
|
|
|||
|
|
@ -818,12 +818,12 @@ export class MonitoringService {
|
|||
const workers = await bullQueue.getWorkers();
|
||||
return workers.length;
|
||||
}
|
||||
|
||||
|
||||
// Fallback to getWorkersCount if available
|
||||
if (bullQueue.getWorkersCount && typeof bullQueue.getWorkersCount === 'function') {
|
||||
return await bullQueue.getWorkersCount();
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
} catch (error) {
|
||||
this.logger.debug('Failed to get active worker count from BullMQ', { error });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue