summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--continuedev/src/continuedev/recipes/CreatePipelineRecipe/main.py6
-rw-r--r--continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py8
2 files changed, 8 insertions, 6 deletions
diff --git a/continuedev/src/continuedev/recipes/CreatePipelineRecipe/main.py b/continuedev/src/continuedev/recipes/CreatePipelineRecipe/main.py
index c0699cae..4a4604d6 100644
--- a/continuedev/src/continuedev/recipes/CreatePipelineRecipe/main.py
+++ b/continuedev/src/continuedev/recipes/CreatePipelineRecipe/main.py
@@ -23,11 +23,5 @@ class CreatePipelineRecipe(Step):
- Write a query to view the data""")) >>
WaitForUserInputStep(prompt="What API do you want to load data from?") >>
SetupPipelineStep(api_description="WeatherAPI.com API") >>
- MessageStep(message=dedent("""\
- This step will validate that your dlt pipeline is working as expected:
- - Test that the API call works
- - Load the data into a local DuckDB instance
- - Write a query to view the data
- """)) >>
ValidatePipelineStep()
)
diff --git a/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py b/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py
index b480223a..ef5e3b43 100644
--- a/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py
+++ b/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py
@@ -1,5 +1,6 @@
from textwrap import dedent
+from ...steps.main import MessageStep
from ...core.sdk import Models
from ...core.observation import DictObservation
from ...models.filesystem_edit import AddFile
@@ -53,6 +54,13 @@ class ValidatePipelineStep(Step):
source_name = sdk.history.last_observation().values["source_name"]
filename = f'{source_name}.py'
+ await sdk.run_step(MessageStep(message=dedent("""\
+ This step will validate that your dlt pipeline is working as expected:
+ - Test that the API call works
+ - Load the data into a local DuckDB instance
+ - Write a query to view the data
+ """)))
+
# test that the API call works
await sdk.run(f'python3 {filename}')