From 0d930f2d93f7de5ac24d158472242bff71acf265 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 26 Sep 2024 20:25:16 +0530 Subject: [PATCH] mgr/vol: add a helpful comment in async_job.py Signed-off-by: Rishabh Dave --- src/pybind/mgr/volumes/fs/async_job.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pybind/mgr/volumes/fs/async_job.py b/src/pybind/mgr/volumes/fs/async_job.py index 075fedf20a461..dc0a2ac8f9775 100644 --- a/src/pybind/mgr/volumes/fs/async_job.py +++ b/src/pybind/mgr/volumes/fs/async_job.py @@ -133,7 +133,11 @@ class AsyncJobs(threading.Thread): # lock, cv for kickstarting jobs self.lock = threading.Lock() self.cv = threading.Condition(self.lock) + + # Indicates whether or not entire async job machinery is being + # shutdown/stopped. self.stopping = threading.Event() + self.cancel_cv = threading.Condition(self.lock) self.nr_concurrent_jobs = nr_concurrent_jobs self.name_pfx = name_pfx -- 2.39.5