@@ -40,8 +40,7 @@ async function applyScheduleUpdate(
4040 scheduleId : string ,
4141 updates : WorkflowScheduleUpdate ,
4242 requestId : string ,
43- context : string ,
44- successLog ?: string
43+ context : string
4544) {
4645 try {
4746 await db . update ( workflowSchedule ) . set ( updates ) . where ( eq ( workflowSchedule . id , scheduleId ) )
@@ -349,8 +348,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
349348 status : 'disabled' ,
350349 } ,
351350 requestId ,
352- `Failed to disable schedule ${ payload . scheduleId } after authentication error` ,
353- `Disabled schedule ${ payload . scheduleId } due to authentication failure (401)`
351+ `Failed to disable schedule ${ payload . scheduleId } after authentication error`
354352 )
355353 return
356354 }
@@ -368,8 +366,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
368366 status : 'disabled' ,
369367 } ,
370368 requestId ,
371- `Failed to disable schedule ${ payload . scheduleId } after authorization error` ,
372- `Disabled schedule ${ payload . scheduleId } due to authorization failure (403)`
369+ `Failed to disable schedule ${ payload . scheduleId } after authorization error`
373370 )
374371 return
375372 }
@@ -384,8 +381,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
384381 status : 'disabled' ,
385382 } ,
386383 requestId ,
387- `Failed to disable schedule ${ payload . scheduleId } after missing workflow` ,
388- `Disabled schedule ${ payload . scheduleId } because the workflow no longer exists`
384+ `Failed to disable schedule ${ payload . scheduleId } after missing workflow`
389385 )
390386 return
391387 }
@@ -402,8 +398,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
402398 nextRunAt : nextRetryAt ,
403399 } ,
404400 requestId ,
405- `Error updating schedule ${ payload . scheduleId } for rate limit` ,
406- `Updated next retry time for schedule ${ payload . scheduleId } due to rate limit`
401+ `Error updating schedule ${ payload . scheduleId } for rate limit`
407402 )
408403 return
409404 }
@@ -419,8 +414,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
419414 nextRunAt,
420415 } ,
421416 requestId ,
422- `Error updating schedule ${ payload . scheduleId } after usage limit check` ,
423- `Scheduled next run for ${ payload . scheduleId } after usage limit`
417+ `Error updating schedule ${ payload . scheduleId } after usage limit check`
424418 )
425419 }
426420 return
@@ -448,8 +442,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
448442 status : shouldDisable ? 'disabled' : 'active' ,
449443 } ,
450444 requestId ,
451- `Error updating schedule ${ payload . scheduleId } after preprocessing failure` ,
452- `Updated schedule ${ payload . scheduleId } after preprocessing failure`
445+ `Error updating schedule ${ payload . scheduleId } after preprocessing failure`
453446 )
454447 return
455448 }
@@ -501,8 +494,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
501494 lastQueuedAt : null ,
502495 } ,
503496 requestId ,
504- `Error updating schedule ${ payload . scheduleId } after success` ,
505- `Updated next run time for workflow ${ payload . workflowId } to ${ nextRunAt . toISOString ( ) } `
497+ `Error updating schedule ${ payload . scheduleId } after success`
506498 )
507499 return
508500 }
@@ -529,8 +521,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
529521 status : shouldDisable ? 'disabled' : 'active' ,
530522 } ,
531523 requestId ,
532- `Error updating schedule ${ payload . scheduleId } after failure` ,
533- `Updated schedule ${ payload . scheduleId } after failure`
524+ `Error updating schedule ${ payload . scheduleId } after failure`
534525 )
535526 } catch ( error : unknown ) {
536527 const errorMessage = error instanceof Error ? error . message : String ( error )
@@ -548,8 +539,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
548539 nextRunAt : nextRetryAt ,
549540 } ,
550541 requestId ,
551- `Error updating schedule ${ payload . scheduleId } for service overload` ,
552- `Updated schedule ${ payload . scheduleId } retry time due to service overload`
542+ `Error updating schedule ${ payload . scheduleId } for service overload`
553543 )
554544 return
555545 }
@@ -576,8 +566,7 @@ export async function executeScheduleJob(payload: ScheduleExecutionPayload) {
576566 status : shouldDisable ? 'disabled' : 'active' ,
577567 } ,
578568 requestId ,
579- `Error updating schedule ${ payload . scheduleId } after execution error` ,
580- `Updated schedule ${ payload . scheduleId } after execution error`
569+ `Error updating schedule ${ payload . scheduleId } after execution error`
581570 )
582571 }
583572 } catch ( error : unknown ) {
0 commit comments