import{logger as e}from"../logger/index.mjs";import{getRedisClient as t}from"../utils/redis/connectRedis.mjs";import{Queue as n,QueueEvents as r}from"bullmq";const i=`translation-queue-production`;let a=null,o=null;const s=()=>a||(a=new n(i,{connection:t()}),a),c=()=>o||(o=new r(i,{connection:t()}),o),l=async t=>{try{let n=await s().add(`translate-dictionaries`,t);return e.info(`Translation job added: ${n.id}`),n}catch(t){throw e.error(`Error adding translation job:`,t),t}};export{l as addTranslationJob,s as getTranslationQueue,c as getTranslationQueueEvents,i as translationQueueName};
//# sourceMappingURL=translationQueue.service.mjs.map