import { getQueue, addJob, generateJobId } from '../queue-core';


import { worker } from './worker';
import processJob from './processor';
import { JobPriority, getJobPriority, adjustPriorityByROI } from './priority';

// 启动队列系统
const startQueueSystem = (): void => {
  console.log('[Queue System] Starting queue system...');
  console.log('[Queue System] Queue system started successfully');
};

export {
  getQueue,
  addJob,
  generateJobId,
  worker,
  processJob,
  JobPriority,
  getJobPriority,
  adjustPriorityByROI,
  startQueueSystem
};

export default {
  getQueue,
  addJob,
  generateJobId,
  worker,
  processJob,
  JobPriority,
  getJobPriority,
  adjustPriorityByROI,
  startQueueSystem
};
