Commit 49b05a4
committed
fix(webhook-engine): remove the startup partition-ensure
Running ensurePartitions at engine startup fired it on every worker instance at
boot, and createPartition (partitionExists then CREATE, with no lock) is not
safe to run concurrently across instances. The nightly cron already maintains
partitions from a single consumer, which is safe. Initial bootstrap will move to
an admin-triggered action rather than running on every instance at startup.1 parent b30bfa5 commit 49b05a4
1 file changed
Lines changed: 1 addition & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
| |||
742 | 739 | | |
743 | 740 | | |
744 | 741 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | 742 | | |
755 | 743 | | |
756 | 744 | | |
| |||
761 | 749 | | |
762 | 750 | | |
763 | 751 | | |
764 | | - | |
765 | | - | |
| 752 | + | |
766 | 753 | | |
767 | 754 | | |
768 | 755 | | |
| |||
0 commit comments