fix: error logging for stop reasons
This commit is contained in:
@@ -359,6 +359,8 @@ class LettaAgent(BaseAgent):
|
||||
# Update step if it needs to be updated
|
||||
finally:
|
||||
if settings.track_stop_reason:
|
||||
if step_progression == StepProgression.FINISHED and should_continue:
|
||||
continue
|
||||
self.logger.info("Running final update. Step Progression: %s", step_progression)
|
||||
try:
|
||||
if step_progression < StepProgression.STEP_LOGGED:
|
||||
@@ -586,6 +588,8 @@ class LettaAgent(BaseAgent):
|
||||
# Update step if it needs to be updated
|
||||
finally:
|
||||
if settings.track_stop_reason:
|
||||
if step_progression == StepProgression.FINISHED and should_continue:
|
||||
continue
|
||||
self.logger.info("Running final update. Step Progression: %s", step_progression)
|
||||
try:
|
||||
if step_progression < StepProgression.STEP_LOGGED:
|
||||
@@ -897,6 +901,8 @@ class LettaAgent(BaseAgent):
|
||||
# Update step if it needs to be updated
|
||||
finally:
|
||||
if settings.track_stop_reason:
|
||||
if step_progression == StepProgression.FINISHED and should_continue:
|
||||
continue
|
||||
self.logger.info("Running final update. Step Progression: %s", step_progression)
|
||||
try:
|
||||
if step_progression < StepProgression.STEP_LOGGED:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import asyncio
|
||||
|
||||
import pytest
|
||||
|
||||
from letta.constants import MAX_FILENAME_LENGTH
|
||||
|
||||
Reference in New Issue
Block a user