File tree 1 file changed +0
-20
lines changed
scripts/maintenance/computational-clusters/autoscaled_monitor
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import distributed
6
6
import rich
7
- import typer
8
7
from mypy_boto3_ec2 .service_resource import Instance
9
8
from pydantic import AnyUrl
10
9
@@ -64,25 +63,6 @@ async def dask_client(
64
63
f"{ url } " , security = security , timeout = "5" , asynchronous = True
65
64
)
66
65
)
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 )
86
66
yield client
87
67
88
68
finally :
You can’t perform that action at this time.
0 commit comments