Closed wwt17 closed 5 years ago
https://github.com/unias/docklet/blob/5c1a55964a61109023b429e6756ec2cd64bdd976/src/worker/taskcontroller.py#L354 It's better to replace the subprocess.Popen here by subprocess.run(..., timeout=timeout). Benifit: No need to use while for timing. Timing becomes more precise, efficient and elegant.
subprocess.Popen
subprocess.run(..., timeout=timeout)
while
It's a good advice. We'll accept it. Thanks~
https://github.com/unias/docklet/blob/5c1a55964a61109023b429e6756ec2cd64bdd976/src/worker/taskcontroller.py#L354 It's better to replace the
subprocess.Popen
here bysubprocess.run(..., timeout=timeout)
. Benifit: No need to usewhile
for timing. Timing becomes more precise, efficient and elegant.