Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(queue): log the generated job ID on enqueue
Calvin3e22db981c87
diff --git a/backend/src/queue/queue-service.ts b/backend/src/queue/queue-service.tsindex 97fab6d214..7fcd87e9d3 100644--- a/backend/src/queue/queue-service.ts+++ b/backend/src/queue/queue-service.ts@@ -922,12 +922,12 @@ export const queueServiceFactory = (redisCfg: TRedisConfigKeys): TQueueServiceFajobId};- await q?.add(job, data, finalOptions);+ const addedJob = await q?.add(job, data, finalOptions);// Only when the job really exists. `q` is undefined only where QUEUE_WORKERS_ENABLED is false,// and a pod in that mode neither produces nor consumes, so a no-op there is expected rather// than a dropped job worth reporting.- if (q) logger.debug({ queue: name, job, jobId }, "Queue job enqueued");+ if (addedJob) logger.debug({ queue: name, job, jobId: addedJob.id }, "Queue job enqueued");};const stopRepeatableJob: TQueueServiceFactory["stopRepeatableJob"] = async (name, job, repeatOpt, jobId) => {