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