Skip to content

Commit

Permalink
fix: remove types parsing
Browse files Browse the repository at this point in the history
it's implemented in core parameters
  • Loading branch information
maxim-v4s committed Sep 7, 2024
1 parent 4f0aa37 commit b290e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 226 deletions.
8 changes: 2 additions & 6 deletions qualibrate_runner/api/routes/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
run_workflow,
validate_input_parameters,
)
from qualibrate_runner.core.types_parsing import types_conversion

submit_router = APIRouter(prefix="/submit")

Expand All @@ -44,13 +43,10 @@ def submit_node_run(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
detail="Already running",
)
converted_parameters = types_conversion(
input_parameters, node.parameters_class.serialize()
)
validate_input_parameters(
cast(Type[BaseModel], node.parameters_class), converted_parameters
cast(Type[BaseModel], node.parameters_class), input_parameters
)
background_tasks.add_task(run_node, node, converted_parameters, state)
background_tasks.add_task(run_node, node, input_parameters, state)
return f"Node job {node.name} is submitted"


Expand Down
220 changes: 0 additions & 220 deletions qualibrate_runner/core/types_parsing.py

This file was deleted.

0 comments on commit b290e50

Please sign in to comment.