mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-07-24 21:04:58 +00:00
⏳ fix(scraper): увеличивает тайм-аут генерации письма до 120 секунд для улучшения стабильности
All checks were successful
Deploy / deploy (push) Successful in 54s
All checks were successful
Deploy / deploy (push) Successful in 54s
This commit is contained in:
@@ -474,7 +474,7 @@ export async function applyToJobs(
|
||||
const letterPromise = Promise.race([
|
||||
createMessage(resume.data, description, user!.prompt),
|
||||
new Promise<null>((_, reject) =>
|
||||
setTimeout(() => reject(new Error('Letter generation timeout (80s)')), 80000),
|
||||
setTimeout(() => reject(new Error('Letter generation timeout (120s)')), 120000),
|
||||
),
|
||||
]).catch((err: Error) => {
|
||||
log.error('Letter Error:', err.message)
|
||||
|
||||
Reference in New Issue
Block a user