import{logger as e}from"../logger/index.mjs";import{Queue as t,QueueEvents as n}from"bullmq";import r from"ioredis";const i=process.env.REDIS_URL;i||e.error(`REDIS_URL is not defined`);const a=new r(i,{maxRetriesPerRequest:null}),o=`translation-queue-production`,s=new t(o,{connection:a}),c=new n(o,{connection:a}),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 translationQueue,c as translationQueueEvents,o as translationQueueName};
//# sourceMappingURL=translationQueue.service.mjs.map