writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
runner-and-programmaticGuides 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
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.
references/runner-api.md for verified Runner usage, kwargs placement, returned objects, status, logs, and artifact access.references/notebook-and-spin.md for notebook and Spin-adjacent APIs.references/troubleshooting.md when subprocesses fail, time out, or return an unexpected Run lookup error.scripts/runner_smoke.py for a self-contained local programmatic smoke test.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(...).
../flow-authoring/SKILL.md.../client-and-data/SKILL.md.../deployment-orchestration/SKILL.md.