From f25bc46f6bd292fcb9c4c21daa591c7f4a7e41fc Mon Sep 17 00:00:00 2001 From: jfhucka Date: Wed, 28 May 2025 12:27:51 -0500 Subject: [PATCH 1/2] recycling connections every 5 minutes and adding a db precheck --- surfkit/db/conn.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/surfkit/db/conn.py b/surfkit/db/conn.py index 040f31d..7ed0f16 100644 --- a/surfkit/db/conn.py +++ b/surfkit/db/conn.py @@ -34,6 +34,8 @@ def get_env_var(key: str) -> str: engine = create_engine( f"postgresql+psycopg2://{db_user}:{db_pass}@{db_host}/{db_name}", client_encoding="utf8", + pool_pre_ping=True, + pool_recycle=300 ) return engine From 2f160c0258b212f1f08a5de963a03b6e35cf35d1 Mon Sep 17 00:00:00 2001 From: jfhucka Date: Thu, 29 May 2025 15:14:38 -0500 Subject: [PATCH 2/2] bump --- poetry.lock | 16 ++++++++-------- pyproject.toml | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/poetry.lock b/poetry.lock index 3942c49..7bfec31 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4812,13 +4812,13 @@ files = [ [[package]] name = "skillpacks" -version = "0.1.127" +version = "0.1.128" description = "Pluggable skills for AI agents" optional = false python-versions = "<4.0,>=3.10" files = [ - {file = "skillpacks-0.1.127-py3-none-any.whl", hash = "sha256:efe6d814dc1d7ba5b1ef2806dc44960a0bd2bff52032e25bf3797e57d5a19731"}, - {file = "skillpacks-0.1.127.tar.gz", hash = "sha256:e2240cae0e8050c5a69f8d87ca4aff569fa750d88c7ad49de562490770de5585"}, + {file = "skillpacks-0.1.128-py3-none-any.whl", hash = "sha256:a0ce4e7cceacc53fd17e7b4136d064fb655e0e366e4520c5a49d0e76205d8ea1"}, + {file = "skillpacks-0.1.128.tar.gz", hash = "sha256:80a54390002bf81337e60b089921f985125c374ba374bc73a2144fc1eca148ec"}, ] [package.dependencies] @@ -4986,13 +4986,13 @@ widechars = ["wcwidth"] [[package]] name = "taskara" -version = "0.1.244" +version = "0.1.246" description = "Task management for AI agents" optional = false python-versions = "<4.0,>=3.10" files = [ - {file = "taskara-0.1.244-py3-none-any.whl", hash = "sha256:1a37717a70abfcdf43a01da45f7cdd08d26d17c03bade4464c7265050fa35766"}, - {file = "taskara-0.1.244.tar.gz", hash = "sha256:7408b269751a9e30f82c90af3626ec37bf2b3e0c02b3abde3a06f2f371ca7718"}, + {file = "taskara-0.1.246-py3-none-any.whl", hash = "sha256:13bd547d2c438634482fca6fdd172b9c8076f0f6994773cc655dffb1c2f05bc9"}, + {file = "taskara-0.1.246.tar.gz", hash = "sha256:9075fa21e9f58833c9d0a06267351ccdd1d8988b3b4dd1fad0b14b1b6458a374"}, ] [package.dependencies] @@ -5003,7 +5003,7 @@ openmeter = ">=1.0.0b188,<2.0.0" pydantic = ">=2.6.4,<3.0.0" redis = ">=5.2.0,<6.0.0" shortuuid = ">=1.0.13,<2.0.0" -skillpacks = ">=0.1.127,<0.2.0" +skillpacks = ">=0.1.128,<0.2.0" sqlalchemy = ">=2.0.29,<3.0.0" tqdm = ">=4.66.4,<5.0.0" @@ -5894,4 +5894,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "ec2adb03def2c79abe6054d9e46b6d34f5bf346d2b852e1c604f51cbd41824d2" +content-hash = "ca25cccb8a1f48d4a062efe6820ffc77700e65b26b71f45a578d9e06083f83c9" diff --git a/pyproject.toml b/pyproject.toml index 5ea86fa..5a791be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "surfkit" -version = "0.1.422" +version = "0.1.423" description = "A toolkit for building AI agents that use devices" authors = ["Patrick Barker ", "Jeffrey Huckabay "] license = "MIT" @@ -20,7 +20,7 @@ rich = "^13.7.1" tqdm = "^4.66.4" agentcore = "^0.1.2" agentdesk = "^0.2.135" -taskara = "^0.1.244" +taskara = "^0.1.246" [tool.poetry.group.dev.dependencies]