Skip to content

Commit

Permalink
fix: correctly expand pipeline_dir in pipeline configs
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Nov 15, 2023
1 parent a311eb1 commit f1f26c9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/kiara/interfaces/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,19 @@ def run(
sys.exit(1)
else:
# TODO: check if valid pipeline, otherwise check if 'module_or_operation is an operation name

from kiara.models.module.jobs import ExecutionContext
from kiara.models.module.pipeline import PipelineConfig

pipeline_dir = os.path.abspath(os.path.dirname(path))
execution_context = ExecutionContext(pipeline_dir=pipeline_dir)
pc = PipelineConfig.from_config(
data, execution_context=execution_context
)
job_desc = JobDesc(
operation="pipeline", module_config=data, job_alias="local_pipeline"
operation="pipeline",
module_config=pc.model_dump(),
job_alias="local_pipeline",
)
job_descs.append(job_desc)

Expand Down

0 comments on commit f1f26c9

Please sign in to comment.