Skip to content

Commit

Permalink
monitoring script
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Sep 10, 2024
1 parent 4955e17 commit 18cce86
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import distributed
import rich
import typer
from mypy_boto3_ec2.service_resource import Instance
from pydantic import AnyUrl

Expand Down Expand Up @@ -64,25 +63,6 @@ async def dask_client(
f"{url}", security=security, timeout="5", asynchronous=True
)
)
versions = await _wrap_dask_async_call(client.get_versions())
if versions["client"]["python"] != versions["scheduler"]["python"]:
rich.print(
f"[red]python versions do not match! TIP: install the correct version {versions['scheduler']['python']}[/red]"
)
raise typer.Exit(1)
if (
versions["client"]["distributed"]
!= versions["scheduler"]["distributed"]
):
rich.print(
f"[red]distributed versions do not match! TIP: install the correct version {versions['scheduler']['distributed']}[/red]"
)
raise typer.Exit(1)
if versions["client"]["dask"] != versions["scheduler"]["dask"]:
rich.print(
f"[red]dask versions do not match! TIP: install the correct version {versions['scheduler']['dask']}[/red]"
)
raise typer.Exit(1)
yield client

finally:
Expand Down

0 comments on commit 18cce86

Please sign in to comment.