mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Lint fixes
This commit is contained in:
parent
3498d31215
commit
73c6216f55
@ -230,7 +230,7 @@ class LiveStatusAppConversationService(AppConversationServiceBase):
|
||||
# Setup working dir based on grouping
|
||||
working_dir = sandbox_spec.working_dir
|
||||
if self.sandbox_grouping_strategy != SandboxGroupingStrategy.NO_GROUPING:
|
||||
working_dir = f"{working_dir}/{conversation_id.hex}"
|
||||
working_dir = f'{working_dir}/{conversation_id.hex}'
|
||||
|
||||
# Run setup scripts
|
||||
remote_workspace = AsyncRemoteWorkspace(
|
||||
|
||||
@ -569,7 +569,9 @@ async def _finalize_delete_and_close_connections(
|
||||
httpx_client: httpx.AsyncClient,
|
||||
):
|
||||
try:
|
||||
num_conversations_in_sandbox = await _get_num_conversations_in_sandbox(sandbox_service, sandbox_id, httpx_client)
|
||||
num_conversations_in_sandbox = await _get_num_conversations_in_sandbox(
|
||||
sandbox_service, sandbox_id, httpx_client
|
||||
)
|
||||
if num_conversations_in_sandbox == 0:
|
||||
await sandbox_service.delete_sandbox(sandbox_id)
|
||||
await db_session.commit()
|
||||
@ -595,7 +597,7 @@ async def _get_num_conversations_in_sandbox(
|
||||
u for u in sandbox.exposed_urls if u.name == AGENT_SERVER
|
||||
)
|
||||
response = await httpx_client.get(
|
||||
f"{agent_server_url.url}/api/conversations/count",
|
||||
f'{agent_server_url.url}/api/conversations/count',
|
||||
headers={'X-Session-API-Key': sandbox.session_api_key},
|
||||
)
|
||||
result = int(response.content)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user