From f4480c3945b5c08db623ca5a67c8960eee6d8a5c Mon Sep 17 00:00:00 2001 From: Sterling Dreyer Date: Mon, 21 Jul 2025 14:43:58 -0700 Subject: [PATCH] Fix `arcade worker list` endpoints (#504) We weren't checking that the engine version of the worker was the same as the cloud version that we were comparing against and incorrectly saying the URL was wrong Before Screenshot 2025-07-21 at 1 55 13 PM After Screenshot 2025-07-21 at 1 55 07 PM --- libs/arcade-cli/arcade_cli/worker.py | 8 +++++--- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/arcade-cli/arcade_cli/worker.py b/libs/arcade-cli/arcade_cli/worker.py index 1fbe3645..c9376e3e 100644 --- a/libs/arcade-cli/arcade_cli/worker.py +++ b/libs/arcade-cli/arcade_cli/worker.py @@ -164,9 +164,11 @@ def compare_endpoints(worker_id: str, engine_endpoint: str, deployments: list[di if is_cloud_deployment(worker_id, deployments): for deployment in deployments: deployment_endpoint = deployment["endpoint"] - if deployment_endpoint == engine_endpoint: - return engine_endpoint - return f"[red]Endpoint Mismatch[/red]\n[yellow]Registered Endpoint: {engine_endpoint}[/yellow]\n[green]Actual Endpoint: {deployment_endpoint}[/green]" + if deployment["name"] == worker_id: + if deployment_endpoint == engine_endpoint: + return engine_endpoint + else: + return f"[red]Endpoint Mismatch[/red]\n[yellow]Registered Endpoint: {engine_endpoint}[/yellow]\n[green]Actual Endpoint: {deployment_endpoint}[/green]" return engine_endpoint diff --git a/pyproject.toml b/pyproject.toml index 9c70ff4a..ccdfa03a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "arcade-ai" -version = "2.1.0" +version = "2.1.1" description = "Arcade.dev - Tool Calling platform for Agents" readme = "README.md" license = {file = "LICENSE"}