From cec22c57010b2ed81bf6651ab66575d1d02f3031 Mon Sep 17 00:00:00 2001 From: jfhucka Date: Wed, 28 May 2025 12:26:12 -0500 Subject: [PATCH 1/2] recycling connections every 5 minutes and adding a db precheck --- taskara/db/conn.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taskara/db/conn.py b/taskara/db/conn.py index 41012f9..0e5b832 100644 --- a/taskara/db/conn.py +++ b/taskara/db/conn.py @@ -34,6 +34,8 @@ def get_env_var(key: str) -> str: engine = create_engine( f"postgresql+psycopg2://{db_user}:{db_password}@{db_host}/{db_name}", client_encoding="utf8", + pool_pre_ping=True, + pool_recycle=300 ) return engine From ce849a688775102f345760eb919ffce60a6216ce Mon Sep 17 00:00:00 2001 From: jfhucka Date: Thu, 29 May 2025 14:56:54 -0500 Subject: [PATCH 2/2] bump --- poetry.lock | 8 ++++---- pyproject.toml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/poetry.lock b/poetry.lock index 8349dc3..05109f5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3721,13 +3721,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] @@ -4693,4 +4693,4 @@ runtime = ["docker", "google-auth", "google-cloud-container", "kubernetes"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "3ffc955d4bb500cd3f88500af34717a54a97910a4b1877d53b12bf26786aafc3" +content-hash = "fd35a27a446cbb65da715cf92aa578b5a5e4dcacc707ff873c3734ec0c0c570f" diff --git a/pyproject.toml b/pyproject.toml index 138eefe..8242007 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "taskara" -version = "0.1.245" +version = "0.1.246" description = "Task management for AI agents" authors = ["Patrick Barker "] license = "MIT" @@ -22,7 +22,7 @@ tqdm = "^4.66.4" cryptography = "^43.0.1" redis = "^5.2.0" agentcore = "^0.1.3" -skillpacks = "^0.1.127" +skillpacks = "^0.1.128" openmeter = "^1.0.0b188" [tool.poetry.group.dev.dependencies]