Skip to content

Commit

Permalink
deploy: simplify process checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mplsgrant committed Dec 23, 2024
1 parent 714a2ba commit 10b8fb1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/warnet/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,13 @@ def run_plugins(directory, hook_value: HookValue, namespace, annex: Optional[dic

if processes:
print(f"Starting {hook_value.value} plugins")
for process in processes:
process.start()

for process in processes:
process.join()
if processes:
for process in processes:
process.start()

for process in processes:
process.join()

print(f"Completed {hook_value.value} plugins")


Expand Down

0 comments on commit 10b8fb1

Please sign in to comment.