fix(core): Fix crashes in queue mode (#3397)
* Add catch block to avoid crashes when running in queue mode * Throwing errors that happen in worker so process stops
This commit is contained in:
@@ -561,6 +561,12 @@ export class WorkflowRunner {
|
||||
},
|
||||
);
|
||||
|
||||
workflowExecution.catch(() => {
|
||||
// We `reject` this promise if the execution fails
|
||||
// but the error is handled already by processError
|
||||
// So we're just preventing crashes here.
|
||||
});
|
||||
|
||||
this.activeExecutions.attachWorkflowExecution(executionId, workflowExecution);
|
||||
return executionId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user