Amir Mahla commited on
Commit
0d44ddc
·
1 Parent(s): 9b5e4e9

CHG timeout sandbox

Browse files
cua2-core/src/cua2_core/services/agent_service.py CHANGED
@@ -184,7 +184,7 @@ class AgentService:
184
 
185
  model = get_model(self.active_tasks[message_id].model_id)
186
 
187
- max_attempts = 10
188
  for _ in range(max_attempts):
189
  response = await self.sandbox_service.acquire_sandbox(message_id)
190
  if response.sandbox is not None and response.state == "ready":
 
184
 
185
  model = get_model(self.active_tasks[message_id].model_id)
186
 
187
+ max_attempts = 20
188
  for _ in range(max_attempts):
189
  response = await self.sandbox_service.acquire_sandbox(message_id)
190
  if response.sandbox is not None and response.state == "ready":
cua2-core/src/cua2_core/services/sandbox_service.py CHANGED
@@ -9,7 +9,7 @@ from pydantic import BaseModel
9
 
10
  SANDBOX_METADATA: dict[str, dict[str, Any]] = {}
11
  SANDBOX_TIMEOUT = 500
12
- SANDBOX_CREATION_TIMEOUT = 180
13
  WIDTH = 1280
14
  HEIGHT = 960
15
 
 
9
 
10
  SANDBOX_METADATA: dict[str, dict[str, Any]] = {}
11
  SANDBOX_TIMEOUT = 500
12
+ SANDBOX_CREATION_TIMEOUT = 200
13
  WIDTH = 1280
14
  HEIGHT = 960
15