mirror of
https://github.com/n8n-io/n8n.git
synced 2025-12-05 19:27:26 -06:00
refactor(core): Make Sentry init non-fatal for JS runner (#22800)
This commit is contained in:
@@ -54,7 +54,15 @@ void (async function start() {
|
||||
});
|
||||
|
||||
sentry = Container.get(TaskRunnerSentry);
|
||||
await sentry.initIfEnabled();
|
||||
try {
|
||||
await sentry.initIfEnabled();
|
||||
} catch (error) {
|
||||
console.error(
|
||||
'FAILED TO INITIALIZE SENTRY. ERROR REPORTING WILL BE DISABLED. THIS IS LIKELY A CONFIGURATION OR ENVIRONMENT ISSUE.',
|
||||
error,
|
||||
);
|
||||
sentry = undefined;
|
||||
}
|
||||
|
||||
runner = new JsTaskRunner(config);
|
||||
runner.on('runner:reached-idle-timeout', () => {
|
||||
|
||||
Reference in New Issue
Block a user