mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
fix bug
This commit is contained in:
parent
f536a5a357
commit
e06cfe301e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue