Skip to content

Commit f4480c3

Browse files
authored
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 <img width="1447" height="340" alt="Screenshot 2025-07-21 at 1 55 13 PM" src="https://github.com/user-attachments/assets/cf39ce9f-0c86-45fd-a68e-c92369876292" /> After <img width="1454" height="308" alt="Screenshot 2025-07-21 at 1 55 07 PM" src="https://github.com/user-attachments/assets/efcfe6c8-b892-45f7-bf4c-71edc66c8325" />
1 parent 4598e1e commit f4480c3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎libs/arcade-cli/arcade_cli/worker.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,11 @@ def compare_endpoints(worker_id: str, engine_endpoint: str, deployments: list[di
164164
if is_cloud_deployment(worker_id, deployments):
165165
for deployment in deployments:
166166
deployment_endpoint = deployment["endpoint"]
167-
if deployment_endpoint == engine_endpoint:
168-
return engine_endpoint
169-
return f"[red]Endpoint Mismatch[/red]\n[yellow]Registered Endpoint: {engine_endpoint}[/yellow]\n[green]Actual Endpoint: {deployment_endpoint}[/green]"
167+
if deployment["name"] == worker_id:
168+
if deployment_endpoint == engine_endpoint:
169+
return engine_endpoint
170+
else:
171+
return f"[red]Endpoint Mismatch[/red]\n[yellow]Registered Endpoint: {engine_endpoint}[/yellow]\n[green]Actual Endpoint: {deployment_endpoint}[/green]"
170172
return engine_endpoint
171173

172174

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "arcade-ai"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
description = "Arcade.dev - Tool Calling platform for Agents"
55
readme = "README.md"
66
license = {file = "LICENSE"}

0 commit comments

Comments
 (0)