Update job-priority.ts

This commit is contained in:
Nicolas 2024-08-27 15:04:10 -03:00
parent 1e08e6d317
commit 06b70a47e0

View File

@ -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);
await redisConnection.expire(setKey, 60);
} catch (e) {
Logger.error(`Add job priority (sadd) failed: ${team_id}, ${job_id}`);
}