summaryrefslogtreecommitdiff
path: root/continuedev
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-09 12:10:21 -0400
committerNate Sesti <sestinj@gmail.com>2023-06-09 12:10:21 -0400
commitc6f70eac0d165f98ce4cc3c6bcd9f2e14dcf47eb (patch)
tree9280f4be0d1d4571552213d483b0f5c7f9646b06 /continuedev
parent351f0a833bc62f54c18cf3b09be1b83831e3021a (diff)
downloadsncontinue-c6f70eac0d165f98ce4cc3c6bcd9f2e14dcf47eb.tar.gz
sncontinue-c6f70eac0d165f98ce4cc3c6bcd9f2e14dcf47eb.tar.bz2
sncontinue-c6f70eac0d165f98ce4cc3c6bcd9f2e14dcf47eb.zip
fixed final (query) step of CreatePipelineRecipe
Diffstat (limited to 'continuedev')
-rw-r--r--continuedev/src/continuedev/core/autopilot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/continuedev/src/continuedev/core/autopilot.py b/continuedev/src/continuedev/core/autopilot.py
index 97955ea2..b82e1fef 100644
--- a/continuedev/src/continuedev/core/autopilot.py
+++ b/continuedev/src/continuedev/core/autopilot.py
@@ -1,3 +1,4 @@
+from functools import cached_property
import traceback
import time
from typing import Any, Callable, Coroutine, Dict, List
@@ -28,7 +29,7 @@ class Autopilot(ContinueBaseModel):
_user_input_queue = AsyncSubscriptionQueue()
_retry_queue = AsyncSubscriptionQueue()
- @property
+ @cached_property
def continue_sdk(self) -> ContinueSDK:
return ContinueSDK(self)
@@ -200,8 +201,7 @@ class Autopilot(ContinueBaseModel):
self._active = False
# Doing this so active can make it to the frontend after steps are done. But want better state syncing tools
- for callback in self._on_update_callbacks:
- await callback(None)
+ await self.update_subscribers()
async def run_from_observation(self, observation: Observation):
next_step = self.policy.next(self.history)