Fixed progress bug.

This commit is contained in:
Adam Fourney 2024-11-13 08:58:46 -08:00
parent 333e117a84
commit 3661d96614
1 changed files with 3 additions and 1 deletions

View File

@ -224,7 +224,9 @@ class LedgerOrchestratorManager(SequentialRoutedAgent):
return
# Check for stalling
if progress_ledger["is_progress_being_made"]["answer"] or progress_ledger["is_in_loop"]["answer"]:
if not progress_ledger["is_progress_being_made"]["answer"]:
self._n_stalls += 1
elif progress_ledger["is_in_loop"]["answer"]:
self._n_stalls += 1
else:
self._n_stalls = max(0, self._n_stalls - 1)