runners-and-execution
Run Kedro pipelines, choose runners, configure execution flags, resume missing outputs, load versions, and troubleshoot runner failures.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- runners-and-execution
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Run Kedro pipelines, choose runners, configure execution flags, resume missing outputs, load versions, and troubleshoot runner failures.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/run-options.md9.2 KB
- 参考文档references/runner-selection.md8.0 KB
- 参考文档references/troubleshooting.md10.9 KB
03 SKILL.md 正文
Runners and Execution
Use this sub-skill when a task is about executing Kedro pipelines with kedro run, KedroSession.run(), AbstractRunner, SequentialRunner, ThreadRunner, ParallelRunner, async load/save, run slicing, load versions, or missing-output resume behavior.
Route Here
- Choose between
SequentialRunner,ThreadRunner,ParallelRunner, or a customAbstractRunnersubclass. - Build a
kedro runcommand with--runner,--async,--tags,--nodes,--from-nodes,--to-nodes,--from-inputs,--to-outputs,--load-versions,--pipelines,--namespaces,--params,--config,--conf-source, or--only-missing-outputs. - Use
KedroSession.run()programmatically after a project has already been bootstrapped or opened through a session. - Diagnose execution-time failures from missing inputs, empty slices, wrong runner instances, multiprocessing serialization, async I/O, resume suggestions, hook behavior, or persistent-output skipping.
Route Elsewhere
- Pipeline graph construction,
node(),Pipeline,pipeline(), tags, namespaces, and slice semantics before execution: read../pipelines-and-nodes/SKILL.md. DataCatalog, catalog YAML, credentials, dataset versioning,OmegaConfigLoader, and dataset optional dependencies: read../data-catalog-and-config/SKILL.md.- Project creation, project detection,
kedro new,KedroSession.create(),bootstrap_project(), and CLI command availability: read../project-cli-and-sessions/SKILL.md. - Hook implementation, plugin hooks, custom CLI commands, custom datasets, and custom runner design beyond selection/use: read
../hooks-and-extensions/SKILL.md. - Package-wide installation, optional extras, and root routing: read
../../SKILL.md.
Current Facts
- Kedro version target:
1.4.0; distribution and import name:kedro; Python requirement:>=3.10. - Runner constructors:
SequentialRunner(is_async=False),ThreadRunner(max_workers=None, is_async=False), andParallelRunner(max_workers=None, is_async=False). KedroSession.run()acceptspipeline_name=None,pipeline_names=None,tags=None,runner=None,node_names=None,from_nodes=None,to_nodes=None,from_inputs=None,to_outputs=None,load_versions=None,namespaces=None, andonly_missing_outputs=False.kedro rundefaults toSequentialRunnerand supports the execution flags documented inreferences/run-options.md.ParallelRunneruses multiprocessing, requires serializable nodes/datasets, usesSharedMemoryDataCatalogthrough the CLI/session path, and does not execute node/dataset hooks in worker processes.ThreadRunneruses threads, does not support async load/save, and is the recommended concurrent runner for Spark-style workflows sharing one Spark session.
Reference Map
- Read
references/run-options.mdto construct safe CLI andKedroSession.run()calls, including slicing, load versions, runtime params, config files, and only-missing-output runs. - Read
references/runner-selection.mdto choose a runner, configuremax_workers, useKEDRO_MP_CONTEXT, handle async I/O, and understand programmatic output objects. - Read
references/troubleshooting.mdwhen a run fails, skips unexpected nodes, cannot find inputs, cannot serialize for multiprocessing, ignores hooks, or rejects CLI/session arguments.
Fast Patterns
- Safe default run:
KEDRO_DISABLE_TELEMETRY=1 kedro run. - Explicit concurrent run for thread-safe work:
KEDRO_DISABLE_TELEMETRY=1 kedro run --runner=ThreadRunner. - Multiprocessing run when nodes and datasets are serializable:
KEDRO_DISABLE_TELEMETRY=1 KEDRO_MP_CONTEXT=spawn kedro run --runner=ParallelRunner. - Resume only missing persistent outputs:
KEDRO_DISABLE_TELEMETRY=1 kedro run --only-missing-outputs. - Load a versioned input:
KEDRO_DISABLE_TELEMETRY=1 kedro run --load-versions=raw_data:2024-01-01T00.00.00.000Z. - Programmatic run: create a new
KedroSessionfor each successful run, pass a runner instance such asSequentialRunner(), and load returned output datasets from the catalog or dataset objects.
Safety Notes
kedro runexecutes user pipeline code and can read/write configured datasets; do not treat it as a dry-run command.- For automation or privacy-sensitive checks, set
KEDRO_DISABLE_TELEMETRY=1orDO_NOT_TRACK=1before CLI probes or runs. --conf-sourcemay point at local or remote configuration; confirm trust and credentials handling before using remote configuration sources.--paramsvalues may override runtime parameters used by nodes; avoid echoing secrets and route parameter/config validation to../data-catalog-and-config/SKILL.md.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).