Skip to content

Commit

Permalink
Fix fetching single running pod (#846) (#847)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Tomlinson <[email protected]>
  • Loading branch information
dbalabka and jacobtomlinson authored Jan 5, 2024
1 parent 90c7d9b commit aae2688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dask_kubernetes/common/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ async def wait_for_scheduler(cluster_name, namespace, timeout=None):
try:
pod = await Pod.get(
label_selector=f"dask.org/component=scheduler,dask.org/cluster-name={cluster_name}",
field_selector="status.phase=Running",
namespace=namespace,
)
except kr8s.NotFoundError:
Expand Down
1 change: 1 addition & 0 deletions dask_kubernetes/operator/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ async def wait_for_scheduler(cluster_name, namespace, timeout=None):
try:
pod = await Pod.get(
label_selector=f"dask.org/component=scheduler,dask.org/cluster-name={cluster_name}",
field_selector="status.phase=Running",
namespace=namespace,
)
except kr8s.NotFoundError:
Expand Down

0 comments on commit aae2688

Please sign in to comment.