trying to fix build
This commit is contained in:
parent
269364fbc8
commit
2db7c0dc36
3 changed files with 119 additions and 30 deletions
|
|
@ -96,9 +96,7 @@ export class QueueManager {
|
|||
// Step 4: Setup event listeners
|
||||
this.setupEventListeners();
|
||||
|
||||
// Step 5: Initialize batch cache
|
||||
const { initializeBatchCache } = await import('./batch-processor');
|
||||
await initializeBatchCache(this);
|
||||
// Step 5: Batch cache will be initialized by individual Queue instances
|
||||
|
||||
// Step 6: Set up scheduled jobs
|
||||
if (this.enableScheduledJobs) {
|
||||
|
|
@ -373,20 +371,15 @@ export class QueueManager {
|
|||
try {
|
||||
let result;
|
||||
|
||||
if (operation === 'process-batch-items') {
|
||||
// Special handling for batch processing - requires queue manager instance
|
||||
result = await processBatchJob(payload, this);
|
||||
} else {
|
||||
// Regular handler lookup
|
||||
const handler = providerRegistry.getHandler(provider, operation);
|
||||
// Regular handler lookup
|
||||
const handler = providerRegistry.getHandler(provider, operation);
|
||||
|
||||
if (!handler) {
|
||||
throw new Error(`No handler found for ${provider}:${operation}`);
|
||||
}
|
||||
|
||||
result = await handler(payload);
|
||||
if (!handler) {
|
||||
throw new Error(`No handler found for ${provider}:${operation}`);
|
||||
}
|
||||
|
||||
result = await handler(payload);
|
||||
|
||||
logger.info('Job completed successfully', {
|
||||
id: job.id,
|
||||
provider,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue