Skip to content

Commit 4c1cb31

Browse files
committed
Yolo
1 parent b687e87 commit 4c1cb31

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

agent_memory_server/dependencies.py

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,14 @@ async def add_task(
1919
"""Run tasks either directly or through Docket"""
2020
from docket import Docket
2121

22-
from agent_memory_server.utils.redis import get_redis_conn
23-
2422
logger.info("Adding task to background tasks...")
2523

2624
if settings.use_docket:
2725
logger.info("Scheduling task through Docket")
28-
# Get the Redis connection that's already configured (will use testcontainer in tests)
29-
redis_conn = await get_redis_conn()
30-
31-
# Extract Redis URL from the connection pool
32-
connection_kwargs = redis_conn.connection_pool.connection_kwargs
33-
if "host" in connection_kwargs and "port" in connection_kwargs:
34-
redis_url = (
35-
f"redis://{connection_kwargs['host']}:{connection_kwargs['port']}"
36-
)
37-
if "db" in connection_kwargs:
38-
redis_url += f"/{connection_kwargs['db']}"
39-
else:
40-
# Fallback to settings if we can't extract from connection
41-
redis_url = settings.redis_url
42-
43-
logger.info("redis_url: %s", redis_url)
44-
logger.info("docket_name: %s", settings.docket_name)
26+
4527
async with Docket(
4628
name=settings.docket_name,
47-
url=redis_url,
29+
url=settings.redis_url,
4830
) as docket:
4931
# Schedule task through Docket
5032
await docket.add(func)(*args, **kwargs)

scripts/tag_and_push_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def tag_exists(tag_name: str) -> bool:
7878
["git", "rev-parse", f"refs/tags/{tag_name}"],
7979
capture_output=True,
8080
check=True,
81+
stderr=subprocess.DEVNULL, # Suppress stderr since we expect this to fail for non-existent tags
8182
)
8283
return True
8384
except subprocess.CalledProcessError:

0 commit comments

Comments
 (0)