T-10: M0.3b — Delete legacy MongoDB-writing sync-ib-exchanges operation and its web-api/web-app hooks

This commit is contained in:
Studio 2026-11-27 11:37:04 -05:00
parent 890761e0d5
commit e9659f4dfb
8 changed files with 79 additions and 290 deletions

View file

@ -73,16 +73,6 @@ export function createPipelineRoutes(container: IServiceContainer) {
}
});
pipeline.post('/provider-mappings/ib', async c => {
try {
const result = await pipelineService.syncIBExchanges();
return c.json(result, result.success ? 200 : 503);
} catch (error) {
logger.error('Error in POST /provider-mappings/ib', { error });
return c.json({ success: false, error: 'Internal server error' }, 500);
}
});
// Status endpoint
pipeline.get('/status', async c => {
try {

View file

@ -182,38 +182,6 @@ export class PipelineService {
}
}
/**
* Queue a job to sync IB exchanges
*/
async syncIBExchanges(): Promise<PipelineJobResult> {
try {
const queueManager = this.container.queueManager;
if (!queueManager) {
return { success: false, error: 'Queue manager not available' };
}
const exchangesQueue = queueManager.getQueue(getFullQueueName('data-pipeline', 'exchanges'));
const job = await exchangesQueue.add('sync-ib-exchanges', {
handler: 'exchanges',
operation: 'sync-ib-exchanges',
payload: {},
});
logger.info('IB exchanges sync job queued', { jobId: job.id });
return {
success: true,
jobId: job.id,
message: 'IB exchanges sync job queued',
};
} catch (error) {
logger.error('Failed to queue IB exchanges sync job', { error });
return {
success: false,
error: error instanceof Error ? error.message : 'Failed to queue sync job',
};
}
}
/**
* Get sync status
*/