The interface is localized. Skill descriptions and documents are machine-translated by AI into your language; code, commands, paths and technical terms stay in the original, and the author's document governs.
Explore skills
DevOps · 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.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill documentation

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

Saved skills