mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 16:10:45 +08:00
fix(queue-worker): bad job lock extension time
This commit is contained in:
parent
ab7a35c581
commit
55ec96c23f
@ -33,7 +33,7 @@ const workerStalledCheckInterval =
|
||||
const jobLockExtendInterval =
|
||||
Number(process.env.JOB_LOCK_EXTEND_INTERVAL) || 15000;
|
||||
const jobLockExtensionTime =
|
||||
Number(process.env.JOB_LOCK_EXTENSION_TIME) || 15000;
|
||||
Number(process.env.JOB_LOCK_EXTENSION_TIME) || 60000;
|
||||
|
||||
const cantAcceptConnectionInterval =
|
||||
Number(process.env.CANT_ACCEPT_CONNECTION_INTERVAL) || 2000;
|
||||
@ -52,6 +52,7 @@ const processJobInternal = async (token: string, job: Job) => {
|
||||
try {
|
||||
const result = await processJob(job, token);
|
||||
const jobState = await job.getState();
|
||||
console.log("done", job, jobState, result);
|
||||
if (jobState !== "completed" && jobState !== "failed") {
|
||||
await job.moveToCompleted(result.docs, token, false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user