Skip to content

Commit

Permalink
Log if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
BitTheByte committed Sep 18, 2023
1 parent 76a288e commit 55398ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dask_kubernetes/operator/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,10 @@ async def daskworkergroup_replica_update(
if not worker.ready() and len(pending_workers) <= -workers_needed:
pending_workers.append(worker)

logger.info(f"Pending worker deployments to delete: {pending_workers}")
for worker in pending_workers:
await worker.delete()
if pending_workers:
logger.info(f"Pending worker deployments to delete: {pending_workers}")
for worker in pending_workers:
await worker.delete()

n_workers = -workers_needed - len(pending_workers)
if n_workers > 0:
Expand Down

0 comments on commit 55398ea

Please sign in to comment.