(
args: argparse.Namespace,
image_path: Path,
*,
base_url: str,
model_id: str,
params: dict[str, Any],
wait: bool,
)
| 753 | |
| 754 | |
| 755 | def _run_workflow_run( |
| 756 | args: argparse.Namespace, |
| 757 | image_path: Path, |
| 758 | *, |
| 759 | base_url: str, |
| 760 | model_id: str, |
| 761 | params: dict[str, Any], |
| 762 | wait: bool, |
| 763 | ) -> tuple[str, dict[str, Any], str | None]: |
| 764 | run_id, started = _start_workflow_run(args, image_path, base_url=base_url, model_id=model_id, params=params) |
| 765 | if not wait: |
| 766 | return run_id, started, None |
| 767 | status, rel_path = _poll_workflow_run(args, base_url=base_url, run_id=run_id) |
| 768 | return run_id, status, rel_path |
| 769 | |
| 770 | |
| 771 | def cmd_workflow_run_start(args: argparse.Namespace) -> int: |
no test coverage detected