Skip to content

Commit

Permalink
feat: enable prefect for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Mar 19, 2024
1 parent f1b5751 commit dbeb763
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fasthep_flow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import typer

from .config import FlowConfig, load_config
from .orchestration import prefect_workflow
from .workflow import Workflow

app = typer.Typer()
Expand Down Expand Up @@ -51,7 +52,9 @@ def execute(
# initialize hydra
cfg = init_config(config, overrides)
workflow = Workflow(config=cfg)
results = workflow.run()
flow = prefect_workflow(workflow)
results = flow()
# results = workflow.run()
typer.echo(f"Results: {results}")


Expand Down

0 comments on commit dbeb763

Please sign in to comment.