Commit d2f642c
fix: Move publishRetryMessage to end of processing loop to avoid duplicate retries (#4966)
- [x] Understand the current flow and identify where
`publishRetryMessage` is called
- [x] Remove the `publishRetryMessage` call from line 360 (early in the
loop)
- [x] Add logic to track which messages should have retry messages
published
- [x] Call `publishRetryMessage` at the end of the loop for messages not
marked as invalid
- [x] Update tests to reflect the new behavior (publishRetryMessage
after runner creation)
- [x] Validate changes with linting and testing
- [x] Address code review feedback: use Set for performance, extract
helper function
- [x] Simplify naming and reduce complexity per reviewer feedback
- [x] Update lambda workflow to run on all PRs
- [x] Fix formatting issues
- [x] Fix merge conflicts from stu/fix_job_retry branch
- [x] Revert unnecessary changes to keep PR minimal and focused
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: npalm <[email protected]>
Co-authored-by: Stuart Pearson <[email protected]>
Co-authored-by: Brend-Smits <[email protected]>1 parent 7d99874 commit d2f642c
File tree
2 files changed
+32
-11
lines changed- lambdas/functions/control-plane/src/scale-runners
2 files changed
+32
-11
lines changedLines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1711 | 1711 | | |
1712 | 1712 | | |
1713 | 1713 | | |
| 1714 | + | |
1714 | 1715 | | |
1715 | 1716 | | |
1716 | 1717 | | |
| |||
1762 | 1763 | | |
1763 | 1764 | | |
1764 | 1765 | | |
1765 | | - | |
| 1766 | + | |
1766 | 1767 | | |
1767 | 1768 | | |
1768 | 1769 | | |
| |||
1776 | 1777 | | |
1777 | 1778 | | |
1778 | 1779 | | |
1779 | | - | |
1780 | | - | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
1781 | 1783 | | |
1782 | 1784 | | |
1783 | 1785 | | |
| |||
1801 | 1803 | | |
1802 | 1804 | | |
1803 | 1805 | | |
| 1806 | + | |
1804 | 1807 | | |
1805 | 1808 | | |
1806 | 1809 | | |
| |||
1812 | 1815 | | |
1813 | 1816 | | |
1814 | 1817 | | |
| 1818 | + | |
1815 | 1819 | | |
1816 | 1820 | | |
1817 | 1821 | | |
| |||
1828 | 1832 | | |
1829 | 1833 | | |
1830 | 1834 | | |
1831 | | - | |
| 1835 | + | |
1832 | 1836 | | |
| 1837 | + | |
1833 | 1838 | | |
1834 | 1839 | | |
1835 | 1840 | | |
| |||
1843 | 1848 | | |
1844 | 1849 | | |
1845 | 1850 | | |
1846 | | - | |
| 1851 | + | |
1847 | 1852 | | |
1848 | 1853 | | |
1849 | 1854 | | |
| |||
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
362 | | - | |
| 363 | + | |
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
| |||
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
398 | | - | |
| 399 | + | |
| 400 | + | |
399 | 401 | | |
400 | 402 | | |
401 | 403 | | |
402 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
403 | 411 | | |
404 | 412 | | |
405 | 413 | | |
| |||
452 | 460 | | |
453 | 461 | | |
454 | 462 | | |
455 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
456 | 472 | | |
457 | 473 | | |
458 | 474 | | |
459 | | - | |
| 475 | + | |
460 | 476 | | |
461 | 477 | | |
462 | 478 | | |
| |||
0 commit comments