Skip to content

Commit ccd5878

Browse files
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 <[email protected]>
1 parent a1cd410 commit ccd5878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/volumes/fs/async_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def run(self):
167167
for i in range(c, self.nr_concurrent_jobs):
168168
self.threads.append(JobThread(self, self.vc, name="{0}.{1}.{2}".format(self.name_pfx, time.time(), i)))
169169
self.threads[-1].start()
170-
self.cv.wait(timeout=5)
170+
self.cv.wait(timeout=self.wakeup_timeout)
171171

172172
def shutdown(self):
173173
self.stopping.set()

0 commit comments

Comments
 (0)