Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(queue-worker): remove concurrency entries when done in sentry-less branch

Gergő Móriczd2881927c18c
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts
index 76796742c..71bd63666 100644
--- a/apps/api/src/services/queue-worker.ts
+++ b/apps/api/src/services/queue-worker.ts
@@ -214,7 +214,9 @@ const workerFun = async (
() => {
processJobInternal(token, job)
.finally(() => {
-
+ if (job.id && job.data && job.data.team_id) {
+ redisConnection.zrem(concurrencyLimiterKey, job.id);
+ }
});
}
);