Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: fix default job status (#4831)
cthomas5dbb3a864881
diff --git a/letta/server/rest_api/routers/v1/runs.py b/letta/server/rest_api/routers/v1/runs.pyindex f86933fd3..6e0cc73c4 100644--- a/letta/server/rest_api/routers/v1/runs.py+++ b/letta/server/rest_api/routers/v1/runs.py@@ -115,7 +115,7 @@ async def retrieve_run(job = await server.job_manager.get_job_by_id_async(job_id=run_id, actor=actor)use_lettuce = job.metadata.get("lettuce") and settings.temporal_endpoint- if use_lettuce and job_status not in [JobStatus.completed, JobStatus.failed, JobStatus.cancelled]:+ if use_lettuce and job.status not in [JobStatus.completed, JobStatus.failed, JobStatus.cancelled]:client = await Client.connect(settings.temporal_endpoint,namespace=settings.temporal_namespace,