界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
部署与运维 · SKILL.md

runner-and-programmatic

runner-and-programmatic

【部署与运维】Guides programmatic Metaflow execution with Runner, NBRunner, Deployer bridge objects, subprocess status, logs, async waits, and returned run/task inspection.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: runner-and-programmatic description: "Guides programmatic Metaflow execution with Runner, NBRunner, Deployer bridge objects, subprocess status, logs, async waits, and returned run/task inspection." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Runner and Programmatic Execution

Use this sub-skill when a task asks to run a Metaflow flow from Python code, automate a local smoke test, inspect ExecutingRun/ExecutingTask, stream logs, or bridge to deployment objects programmatically.

Quick Route

Minimal Programmatic Pattern

from metaflow import Runner

with Runner("flow.py", show_output=False, pylint=False, env={"USERNAME": "disco"}) as runner:
    executing = runner.run(max_workers=1)
    print(executing.status, executing.returncode)
    print(executing.run.pathspec)

Top-level flow-script options such as pylint=False, profile=..., env=..., or datastore=... belong on Runner(...). Run-command options such as max_workers=1, tags=[...], or run_id_file=... belong on runner.run(...).

Boundaries

我的收藏