lint(api): only log new worker message if some workers need to be restarted
This commit is contained in:
parent
9c65922526
commit
9555a7a3ea
|
@ -351,7 +351,8 @@ class DevicePoolExecutor:
|
|||
device,
|
||||
)
|
||||
|
||||
logger.debug("starting new workers")
|
||||
if len(needs_restart) > 0:
|
||||
logger.debug("starting new workers")
|
||||
|
||||
for device in self.devices:
|
||||
if device.device in needs_restart:
|
||||
|
|
Loading…
Reference in New Issue