mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-09-17 12:27:38 +00:00
Update job-priority.ts
This commit is contained in:
parent
1e08e6d317
commit
06b70a47e0
@ -11,6 +11,8 @@ export async function addJobPriority(team_id, job_id) {
|
|||||||
|
|
||||||
// Add scrape job id to the set
|
// Add scrape job id to the set
|
||||||
await redisConnection.sadd(setKey, job_id);
|
await redisConnection.sadd(setKey, job_id);
|
||||||
|
await redisConnection.expire(setKey, 60);
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Logger.error(`Add job priority (sadd) failed: ${team_id}, ${job_id}`);
|
Logger.error(`Add job priority (sadd) failed: ${team_id}, ${job_id}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user