Commit a1b91c1
fix(processing): unblock error responses and isolate run-count failures
Remove unnecessary `await waitForCompletion()` from non-SSE and SSE error
paths where no `markAsFailed()` follows — these were blocking error responses
on log persistence for no reason. Wrap `updateWorkflowRunCounts` in its own
try/catch so a run-count DB failure cannot prevent session completion, billing,
and trace span persistence.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1b3708a commit a1b91c1
File tree
3 files changed
+46
-25
lines changed- apps/sim
- app/api/workflows/[id]/execute
- lib
- logs/execution
- workflows/executor
3 files changed
+46
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
642 | 641 | | |
643 | 642 | | |
644 | 643 | | |
| 644 | + | |
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | 701 | | |
716 | 702 | | |
717 | 703 | | |
| |||
1041 | 1027 | | |
1042 | 1028 | | |
1043 | 1029 | | |
| 1030 | + | |
1044 | 1031 | | |
1045 | 1032 | | |
1046 | 1033 | | |
| |||
1056 | 1043 | | |
1057 | 1044 | | |
1058 | 1045 | | |
| 1046 | + | |
1059 | 1047 | | |
1060 | 1048 | | |
1061 | 1049 | | |
| |||
1072 | 1060 | | |
1073 | 1061 | | |
1074 | 1062 | | |
| 1063 | + | |
1075 | 1064 | | |
1076 | 1065 | | |
1077 | 1066 | | |
| |||
1133 | 1122 | | |
1134 | 1123 | | |
1135 | 1124 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | 1125 | | |
1146 | 1126 | | |
1147 | 1127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
694 | 696 | | |
695 | 697 | | |
696 | 698 | | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
697 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
698 | 720 | | |
699 | 721 | | |
700 | 722 | | |
| |||
714 | 736 | | |
715 | 737 | | |
716 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
717 | 744 | | |
718 | 745 | | |
719 | 746 | | |
| |||
735 | 762 | | |
736 | 763 | | |
737 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
738 | 770 | | |
739 | 771 | | |
740 | 772 | | |
| |||
755 | 787 | | |
756 | 788 | | |
757 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
758 | 795 | | |
759 | 796 | | |
760 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
372 | 376 | | |
373 | 377 | | |
374 | 378 | | |
| |||
0 commit comments