Commit 51d62a1
committed
fix: refresh app state on task completion for both success and failure
Previously, app details were only refreshed on successful task completion via UpdateAppDataHandler. When tasks failed (e.g., blueprint command errors), the state machine jumped directly to SetFailed, leaving stale container IDs in the app state.
Now TaskCompletionHandler always calls inspect_app() and update_app() before completing, ensuring app state reflects current Docker container information regardless of task outcome.
Closes #6051 parent 59076d1 commit 51d62a1
File tree
1 file changed
+16
-10
lines changed- scotty/src/docker/state_machine_handlers
1 file changed
+16
-10
lines changedLines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| 102 | + | |
96 | 103 | | |
97 | | - | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| |||
0 commit comments