diff options
author | vkalintiris <vasilis@netdata.cloud> | 2024-02-01 11:44:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 11:44:41 +0200 |
commit | 41422957d0e99f0519eea8c7380bc391e964baa6 (patch) | |
tree | 54997c0bacbfd879b069ea907ea8a447182aa5c6 /ml | |
parent | 5359dce5b8e1071c29d285d9147f7438e0e0e634 (diff) |
Do not cancel detection thread. (#16897)
An atomic flag is used before every iteration
of the detection thread. The flag is set right
before the cancellation request. It is possible
for the detection thread to have already exited
prior to sending the cancellation request.
The training thread most probably suffers from
the same issue, a separate PR will be opened
to fix it.
Diffstat (limited to 'ml')
-rw-r--r-- | ml/ml.cc | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1844,7 +1844,6 @@ void ml_stop_threads() if (!Cfg.detection_thread) return; - netdata_thread_cancel(Cfg.detection_thread); netdata_thread_join(Cfg.detection_thread, NULL); // signal the training queue of each thread |