Nick: improvements to llm extract error handling

This commit is contained in:
Nicolas
2024-08-30 11:57:55 -03:00
parent 41eb620959
commit e5ca4364ba
6 changed files with 101 additions and 78 deletions
+1
View File
@@ -62,6 +62,7 @@ export function waitForJob(jobId: string, timeout: number) {
clearInterval(int);
resolve((await getScrapeQueue().getJob(jobId)).returnvalue);
} else if (state === "failed") {
// console.log("failed", (await getScrapeQueue().getJob(jobId)).failedReason);
clearInterval(int);
reject((await getScrapeQueue().getJob(jobId)).failedReason);
}