summaryrefslogtreecommitdiffstats
path: root/ml
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2024-02-01 11:44:41 +0200
committerGitHub <noreply@github.com>2024-02-01 11:44:41 +0200
commit41422957d0e99f0519eea8c7380bc391e964baa6 (patch)
tree54997c0bacbfd879b069ea907ea8a447182aa5c6 /ml
parent5359dce5b8e1071c29d285d9147f7438e0e0e634 (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.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/ml/ml.cc b/ml/ml.cc
index b786aec9a0..eefe749e58 100644
--- a/ml/ml.cc
+++ b/ml/ml.cc
@@ -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