Skip to content

Commit 18cce86

Browse files
committed
monitoring script
1 parent 4955e17 commit 18cce86

File tree

1 file changed

+0
-20
lines changed
  • scripts/maintenance/computational-clusters/autoscaled_monitor

1 file changed

+0
-20
lines changed

scripts/maintenance/computational-clusters/autoscaled_monitor/dask.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import distributed
66
import rich
7-
import typer
87
from mypy_boto3_ec2.service_resource import Instance
98
from pydantic import AnyUrl
109

@@ -64,25 +63,6 @@ async def dask_client(
6463
f"{url}", security=security, timeout="5", asynchronous=True
6564
)
6665
)
67-
versions = await _wrap_dask_async_call(client.get_versions())
68-
if versions["client"]["python"] != versions["scheduler"]["python"]:
69-
rich.print(
70-
f"[red]python versions do not match! TIP: install the correct version {versions['scheduler']['python']}[/red]"
71-
)
72-
raise typer.Exit(1)
73-
if (
74-
versions["client"]["distributed"]
75-
!= versions["scheduler"]["distributed"]
76-
):
77-
rich.print(
78-
f"[red]distributed versions do not match! TIP: install the correct version {versions['scheduler']['distributed']}[/red]"
79-
)
80-
raise typer.Exit(1)
81-
if versions["client"]["dask"] != versions["scheduler"]["dask"]:
82-
rich.print(
83-
f"[red]dask versions do not match! TIP: install the correct version {versions['scheduler']['dask']}[/red]"
84-
)
85-
raise typer.Exit(1)
8666
yield client
8767

8868
finally:

0 commit comments

Comments
 (0)