From: Rishabh Dave Date: Wed, 18 Sep 2024 05:37:02 +0000 (+0530) Subject: mgr/vol: use pre-defined timeout period instead of hardcoded value X-Git-Tag: v20.0.0~808^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ccd58786b90e358b19fa1d5108802856d6b4b237;p=ceph.git mgr/vol: use pre-defined timeout period instead of hardcoded value Currently timeout is set to 5. But hardcoding this is unnecessary since the class already defines a attribute for this purpose. Use that instead. 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 6834e3e240b33..83a119ca5564c 100644 --- a/src/pybind/mgr/volumes/fs/async_job.py +++ b/src/pybind/mgr/volumes/fs/async_job.py @@ -167,7 +167,7 @@ class AsyncJobs(threading.Thread): for i in range(c, self.nr_concurrent_jobs): self.threads.append(JobThread(self, self.vc, name="{0}.{1}.{2}".format(self.name_pfx, time.time(), i))) self.threads[-1].start() - self.cv.wait(timeout=5) + self.cv.wait(timeout=self.wakeup_timeout) def shutdown(self): self.stopping.set()