Skip to content

Commit

Permalink
[Webcrawler] Adding a Temporal heartbeat in the crawler error handler (
Browse files Browse the repository at this point in the history
  • Loading branch information
lasryaric authored Feb 27, 2024
1 parent d2e1a68 commit d6d7b28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions connectors/src/connectors/webcrawler/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ export async function crawlWebsiteByConnectorId(connectorId: ModelId) {
);
crawlingError++;
},
errorHandler: () => {
// Errors are already logged by the crawler, so we are not re-logging them here.
Context.current().heartbeat({
type: "error_handler",
});
},
},
new Configuration({
purgeOnStart: true,
Expand Down

0 comments on commit d6d7b28

Please sign in to comment.