fix(runWebScraper): don't fetch next job
This commit is contained in:
@@ -131,13 +131,13 @@ const saveJob = async (job: Job, result: any) => {
|
|||||||
|
|
||||||
if (error) throw new Error(error.message);
|
if (error) throw new Error(error.message);
|
||||||
try {
|
try {
|
||||||
await job.moveToCompleted(null);
|
await job.moveToCompleted(null, false, false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// I think the job won't exist here anymore
|
// I think the job won't exist here anymore
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
await job.moveToCompleted(result);
|
await job.moveToCompleted(result, false, false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// I think the job won't exist here anymore
|
// I think the job won't exist here anymore
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user