Repository navigation
Commit 76eb998
LAV-3283: retry a selected task graph run group (#3664)
Parse the quoted group ID, route it through both task execution paths, and select the named root task group for retry. Match Cloud-captured not-found and in-progress errors, retain the selected group and advance its attempt.
Co-authored-by: Przemek Denkiewicz <przemyslaw.denkiewicz@localstack.cloud>
## Test matrix
bare EXECUTE TASK × success -> tests/queries/test_tasks.py::test_execute_task
RETRY LAST × existing graph/error paths -> tests/queries/test_tasks.py::test_execute_task_retry_last_graph
specific older group × failed child -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_older
specific older group × succeeded root omitted -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_older
specific older group × eligible descendant -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_older
specific group × successful run -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_rejections
specific group × in-progress run -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_in_progress
specific group × another root task -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_rejections
specific group × unknown UUID -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_rejections
specific group × empty or malformed quoted ID -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_rejections
specific group × changed graph -> tests/queries/test_tasks.py::test_execute_task_retry_graph_run_group_rejections
specific group × canceled task -> uncovered: env-blocked; no constructible canceled task run in the current compat fixture, shared FAILED/CANCELED selector remains in place
specific group × first-attempt 14-day boundary -> uncovered: env-blocked; neither Cloud account has an aged task run fixture. Verified the documented 14-day rule in the EXECUTE TASK resource entry; implementation compares the selected group earliest created_at to current_timestamp - interval 14 days.
## Deviations
The hint says TASK_HISTORY projects a constant ATTEMPT_NUMBER. The current projection already reads th.attempt_number, so no projection change was needed.
Co-authored-by: spiral <spiral@localhost>
Co-authored-by: Przemek Denkiewicz <przemyslaw.denkiewicz@localstack.cloud>1 parent a4db697 commit 76eb998
4 files changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5388 | 5388 | | |
5389 | 5389 | | |
5390 | 5390 | | |
5391 | | - | |
| 5391 | + | |
5392 | 5392 | | |
5393 | 5393 | | |
5394 | 5394 | | |
5395 | 5395 | | |
5396 | 5396 | | |
5397 | 5397 | | |
5398 | 5398 | | |
| 5399 | + | |
| 5400 | + | |
5399 | 5401 | | |
5400 | 5402 | | |
5401 | 5403 | | |
| |||
9010 | 9012 | | |
9011 | 9013 | | |
9012 | 9014 | | |
9013 | | - | |
| 9015 | + | |
9014 | 9016 | | |
9015 | 9017 | | |
9016 | 9018 | | |
| 9019 | + | |
| 9020 | + | |
9017 | 9021 | | |
9018 | 9022 | | |
9019 | 9023 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| 520 | + | |
520 | 521 | | |
521 | 522 | | |
522 | 523 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22811 | 22811 | | |
22812 | 22812 | | |
22813 | 22813 | | |
22814 | | - | |
22815 | | - | |
22816 | | - | |
22817 | | - | |
22818 | | - | |
22819 | | - | |
22820 | | - | |
| 22814 | + | |
| 22815 | + | |
| 22816 | + | |
| 22817 | + | |
| 22818 | + | |
| 22819 | + | |
| 22820 | + | |
| 22821 | + | |
| 22822 | + | |
| 22823 | + | |
| 22824 | + | |
| 22825 | + | |
| 22826 | + | |
| 22827 | + | |
| 22828 | + | |
22821 | 22829 | | |
22822 | 22830 | | |
22823 | 22831 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8359 | 8359 | | |
8360 | 8360 | | |
8361 | 8361 | | |
8362 | | - | |
| 8362 | + | |
8363 | 8363 | | |
8364 | 8364 | | |
| 8365 | + | |
8365 | 8366 | | |
8366 | 8367 | | |
8367 | 8368 | | |
| |||
0 commit comments