Skip to content

Commit

Permalink
fix(agents-api): Remove broken merge artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Jan 10, 2025
1 parent 1a0beab commit e1a1bc8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 36 deletions.
26 changes: 0 additions & 26 deletions agents-api/agents_api/activities/container.py

This file was deleted.

7 changes: 0 additions & 7 deletions agents-api/agents_api/activities/execute_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ async def execute_system(
) -> Any:
"""Execute a system call with the appropriate handler and transformed arguments."""

connection_pool = getattr(container.state, "postgres_pool", None) or getattr(
app.state, "postgres_pool", None
)

# FIXME: Remove
assert connection_pool is not None

arguments: dict[str, Any] = system.arguments or {}

connection_pool = getattr(app.state, "postgres_pool", None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ async def transition_step(
raise ValueError(msg)

# Create transition
# FIXME: Remove
assert container.state.postgres_pool is not None
try:
transition = await create_execution_transition(
developer_id=context.execution_input.developer_id,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
summarization_model_name: str = env.str("SUMMARIZATION_MODEL_NAME", default="gpt-4-turbo")

query_timeout: float = env.float("QUERY_TIMEOUT", default=90.0)
pool_max_size: int = env.int("POOL_MAX_SIZE", default=multiprocessing.cpu_count() * 2)
pool_max_size: int = env.int("POOL_MAX_SIZE", default=multiprocessing.cpu_count())


# Auth
Expand Down

0 comments on commit e1a1bc8

Please sign in to comment.