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" />
This commit is contained in:
parent
4598e1e4d4
commit
f4480c3945
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue