mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-06-04 11:24:40 +08: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
|
||||
await redisConnection.sadd(setKey, job_id);
|
||||
await redisConnection.expire(setKey, 60);
|
||||
|
||||
} catch (e) {
|
||||
Logger.error(`Add job priority (sadd) failed: ${team_id}, ${job_id}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user