Skip to content

Commit

Permalink
[0.0.11] Release (#64)
Browse files Browse the repository at this point in the history
* fix(storage) Remove location_id

* feat(deriver) Deriver can process multiple sessions at once and uses rich for prints

* fix(route) collection update error handling

* chore(docs) update openapi and version numbers
  • Loading branch information
VVoruganti committed Aug 1, 2024
1 parent ddcde6b commit 1e40778
Show file tree
Hide file tree
Showing 19 changed files with 4,732 additions and 259 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.11] — 2024-08-01

### Added

* `session_id` column to `QueueItem` Table
* `ActiveQueueSession` Table to track which sessions are being actively
processed
* Queue can process multiple sessions at once

### Changed

* Sessions do not require a `location_id`
* Detailed printing using `rich`

## [0.0.10] — 2024-07-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 🫡 Honcho
![Static Badge](https://img.shields.io/badge/Version-0.0.10-blue)
![Static Badge](https://img.shields.io/badge/Version-0.0.11-blue)
[![Discord](https://img.shields.io/discord/1016845111637839922?style=flat&logo=discord&logoColor=23ffffff&label=Plastic%20Labs&labelColor=235865F2)](https://discord.gg/plasticlabs)
[![arXiv](https://img.shields.io/badge/arXiv-2310.06983-b31b1b.svg)](https://arxiv.org/abs/2310.06983)
![GitHub License](https://img.shields.io/github/license/plastic-labs/honcho)
Expand Down
4,427 changes: 4,426 additions & 1 deletion docs/openapi.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "honcho"
version = "0.0.10"
version = "0.0.11"
description = "Honcho Server"
authors = ["Plastic Labs <[email protected]>"]
readme = "README.md"
Expand All @@ -18,12 +18,13 @@ sentry-sdk = {extras = ["fastapi", "sqlalchemy"], version = "^2.3.1"}
greenlet = "^3.0.3"
psycopg = {extras= ["binary"], version="^3.1.19"}
httpx = "^0.27.0"
mirascope = "^0.15.1"
mirascope = "^0.18.2"
opentelemetry-instrumentation-fastapi = "^0.45b0"
opentelemetry-sdk = "^1.24.0"
opentelemetry-exporter-otlp = "^1.24.0"
opentelemetry-instrumentation-sqlalchemy = "^0.45b0"
opentelemetry-instrumentation-logging = "^0.45b0"
rich = "^13.7.1"

[tool.poetry.group.test.dependencies]
pytest = "^8.2.2"
Expand All @@ -48,6 +49,8 @@ select = [
# isort
"I",
]
ignore = ["E501"]

[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends"]

Expand Down
5 changes: 0 additions & 5 deletions src/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ async def get_sessions(
db: AsyncSession,
app_id: uuid.UUID,
user_id: uuid.UUID,
location_id: Optional[str] = None,
reverse: Optional[bool] = False,
is_active: Optional[bool] = False,
filter: Optional[dict] = None,
Expand All @@ -212,9 +211,6 @@ async def get_sessions(
else:
stmt = stmt.order_by(models.Session.created_at)

if location_id is not None:
stmt = stmt.where(models.Session.location_id == location_id)

return stmt


Expand All @@ -229,7 +225,6 @@ async def create_session(
raise ValueError("User not found")
honcho_session = models.Session(
user_id=user_id,
location_id=session.location_id,
h_metadata=session.metadata,
)
db.add(honcho_session)
Expand Down
9 changes: 9 additions & 0 deletions src/deriver/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import asyncio

import uvloop

from .queue import main

if __name__ == "__main__":
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
asyncio.run(main())
Loading

0 comments on commit 1e40778

Please sign in to comment.