1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-18 21:09:41 +02:00
This commit is contained in:
didier 2025-04-09 15:28:26 +02:00
parent f536a5a357
commit e06cfe301e

View file

@ -882,9 +882,10 @@ def get_enabled_workers():
return [file.stem for file in yml_files]
def wait_for_workers():
pandora = pypandora.PyPandora(root_url=pandora_root_url)
target_count = len(get_enabled_workers()) - 1
while True:
workers = self.pandora.get_enabled_workers()
workers = pandora.get_enabled_workers()
log(f"Workers ready : {len(workers)}/ {target_count}")
if len(workers) >= target_count:
break