Skip to content

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

Update job-priority.ts

Nicolas8b53285a939e
diff --git a/apps/api/src/lib/job-priority.ts b/apps/api/src/lib/job-priority.ts
index 00bf9fa40..d108938ee 100644
--- a/apps/api/src/lib/job-priority.ts
+++ b/apps/api/src/lib/job-priority.ts
@@ -11,6 +11,8 @@ export async function addJobPriority(team_id, job_id) {
// Add scrape job id to the set
await redisConnection.sadd(setKey, job_id);
+
+ // This approach will reset the expiration time to 60 seconds every time a new job is added to the set.
await redisConnection.expire(setKey, 60);
} catch (e) {