Commit e7c3cf0
fix(plugin): recreate health context in cleanup for restart support
Recreate healthCtx and healthCancel in cleanup() after cancellation
to support plugin restart. Remove nil assignments for these fields
as they need to persist across restart cycles.
This addresses Elezar's concern NVIDIA#2 about why we nil these fields -
we no longer do. The context is recreated fresh for each restart,
ensuring health checks work correctly when the plugin is restarted.
Fixes plugin restart blocker identified in architecture review.
Refs: NVIDIA#1601
Task: 3/6
Co-authored-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>1 parent 8b37c6b commit e7c3cf0
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | | - | |
136 | | - | |
| 138 | + | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
0 commit comments