Commit e014a02
committed
fix(data_updater): ensure GenServer timeouts reset properly
There were cases where DataUpdater GenServer processes might not
shut down automatically due to missing timeout parameters in several
message handlers. This would have caused processes to remain alive
indefinitely, consuming resources.
The following handlers were missing timeout parameters:
- handle_heartbeat: both success and failure cases
- handle_internal: continue case and failure case
- handle_control: success case
Without proper timeout resets, the 3-hour deactivation interval never triggered,
preventing automatic cleanup of disconnected device processes.
Signed-off-by: Davide Briani <davide.briani@secomind.com>1 parent 251dad2 commit e014a02
File tree
1 file changed
+9
-5
lines changed- apps/astarte_data_updater_plant/lib/astarte_data_updater_plant/data_updater
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | | - | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
101 | | - | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | | - | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
0 commit comments