Skip to content

Commit

Permalink
fix: support alias prefixed strings as job inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Dec 27, 2023
1 parent afd5938 commit 11c1e63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/kiara/interfaces/python_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,6 @@ def assemble_value_map(
if register_data:
temp: Dict[str, Union[str, Value, uuid.UUID, None]] = {}
for k, v in values.items():

if isinstance(v, (Value, uuid.UUID)):
temp[k] = v
continue
Expand All @@ -1595,6 +1594,11 @@ def assemble_value_map(
)

if isinstance(v, str):

if v.startswith("alias:"):
temp[k] = v
continue

try:
v = uuid.UUID(v)
temp[k] = v
Expand Down Expand Up @@ -2103,6 +2107,7 @@ def run_job(
"""
if inputs is None:
inputs = {}

job_id = self.queue_job(
operation=operation, inputs=inputs, operation_config=operation_config
)
Expand Down

0 comments on commit 11c1e63

Please sign in to comment.