Log stack trace with scrapeinfo (#2128)

This commit is contained in:
Suchintan
2025-04-11 19:28:48 -04:00
committed by GitHub
parent 9640e34449
commit 92c7862a77

View File

@@ -688,6 +688,7 @@ class ForgeAgent:
"Scraping failed, marking the task as failed",
task_id=task.task_id,
step_id=step.step_id,
exc_info=True,
)
await self.fail_task(
task,
@@ -1525,6 +1526,7 @@ class ForgeAgent:
f"{e.__class__.__name__} happened in two normal attempts and reload-page retry",
task_id=task.task_id,
step_id=step.step_id,
exc_info=True,
)
raise ScrapingFailed()