We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b63ac0 commit 2f973a6Copy full SHA for 2f973a6
internal-packages/schedule-engine/src/engine/index.ts
@@ -123,7 +123,16 @@ export class ScheduleEngine {
123
const startTime = Date.now();
124
125
if (this.options.onRegisterScheduleInstance) {
126
- await this.options.onRegisterScheduleInstance(params.instanceId);
+ const [registerError] = await tryCatch(
127
+ this.options.onRegisterScheduleInstance(params.instanceId)
128
+ );
129
+
130
+ if (registerError) {
131
+ this.logger.error("Error calling the onRegisterScheduleInstance callback", {
132
+ instanceId: params.instanceId,
133
+ error: registerError,
134
+ });
135
+ }
136
}
137
138
span.setAttribute("instanceId", params.instanceId);
0 commit comments