From: Rishabh Dave Date: Thu, 26 Sep 2024 14:55:16 +0000 (+0530) Subject: mgr/vol: add a helpful comment in async_job.py X-Git-Tag: v20.0.0~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0d930f2d93f7de5ac24d158472242bff71acf265;p=ceph.git mgr/vol: add a helpful comment in async_job.py Signed-off-by: Rishabh Dave --- diff --git a/src/pybind/mgr/volumes/fs/async_job.py b/src/pybind/mgr/volumes/fs/async_job.py index 075fedf20a4..dc0a2ac8f97 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