removed delayWorkerStart
This commit is contained in:
parent
f6038d385f
commit
c8dcd697c9
10 changed files with 5 additions and 12 deletions
|
|
@ -150,7 +150,7 @@ export class QueueManager {
|
|||
const queueConfig: QueueWorkerConfig = {
|
||||
workers,
|
||||
concurrency,
|
||||
startWorker: workers > 0 && !this.config.delayWorkerStart,
|
||||
startWorker: workers > 0,
|
||||
handlerRegistry: options.handlerRegistry || this.handlerRegistry,
|
||||
serviceName: this.config.serviceName,
|
||||
};
|
||||
|
|
@ -186,7 +186,7 @@ export class QueueManager {
|
|||
workers: workers,
|
||||
concurrency: concurrency,
|
||||
handlerRegistryProvided: !!this.handlerRegistry,
|
||||
willStartWorkers: workers > 0 && !this.config.delayWorkerStart,
|
||||
willStartWorkers: workers > 0,
|
||||
isOwnQueue,
|
||||
serviceName: this.serviceName,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ export interface QueueManagerConfig {
|
|||
enableScheduledJobs?: boolean;
|
||||
globalRateLimit?: RateLimitConfig;
|
||||
rateLimitRules?: RateLimitRule[]; // Global rate limit rules
|
||||
delayWorkerStart?: boolean; // If true, workers won't start automatically
|
||||
serviceName?: string; // For service discovery and namespacing
|
||||
autoDiscoverHandlers?: boolean; // Auto-discover queue routes from handler registry
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue