Commit 0243458
fix: resolve merge conflicts from stu/fix_job_retry branch
The merge from stu/fix_job_retry incorrectly reverted the core change
where publishRetryMessage was moved to the end of the loop. This fix
restores the correct behavior:
- Restore queuedMessages.push(message) instead of await publishRetryMessage(message)
- Remove conflicting test assertions from merge (lines expecting both
publishRetryMessage NOT to be called AND to be called 2 times)
- Reorder test assertions to check listEC2Runners before publishRetryMessage
All tests now pass with the correct behavior where publishRetryMessage
is called AFTER runner creation and only for non-rejected messages.
Co-authored-by: stuartp44 <1926002+stuartp44@users.noreply.github.com>1 parent ef5c981 commit 0243458
File tree
2 files changed
+4
-7
lines changed- lambdas/functions/control-plane/src/scale-runners
2 files changed
+4
-7
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1757 | 1757 | | |
1758 | 1758 | | |
1759 | 1759 | | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | 1760 | | |
1765 | 1761 | | |
1766 | 1762 | | |
1767 | 1763 | | |
1768 | 1764 | | |
1769 | 1765 | | |
1770 | 1766 | | |
1771 | | - | |
1772 | | - | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
1773 | 1770 | | |
1774 | 1771 | | |
1775 | 1772 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
0 commit comments