Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

put dry run in try/except process

thomashebrard7c58c38bcd08
diff --git a/pipelex/libraries/pipelines/builder/builder.py b/pipelex/libraries/pipelines/builder/builder.py
index 928ac0bcf..026fe70d6 100644
--- a/pipelex/libraries/pipelines/builder/builder.py
+++ b/pipelex/libraries/pipelines/builder/builder.py
@@ -227,6 +227,7 @@ async def validate_bundle_spec(pipelex_bundle_spec: PipelexBundleSpec):
try:
pipes = library_manager.load_from_blueprint(blueprint=pipelex_bundle_blueprint)
+ dry_run_result = await dry_run_pipes(pipes=pipes, raise_on_failure=True)
except StaticValidationError as static_validation_error:
static_validation_error_data = StaticValidationErrorData(
error_type=static_validation_error.error_type,
@@ -268,7 +269,6 @@ async def validate_bundle_spec(pipelex_bundle_spec: PipelexBundleSpec):
)
raise PipelexBundleError(message=pipe_loading_error.message, pipe_definition_errors=[pipe_definition_error_data]) from pipe_loading_error
- dry_run_result = await dry_run_pipes(pipes=pipes, raise_on_failure=True)
library_manager.remove_from_blueprint(blueprint=pipelex_bundle_blueprint)
pipe_type_to_spec_class = {