tessl install tessl/pypi-kedro@1.1.0Kedro helps you build production-ready data and analytics pipelines
Agent Success
Agent success rate when using this tile
98%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.32x
Baseline
Agent success rate without this tile
74%
Build a Kedro plugin that implements custom hooks to track pipeline execution metrics.
Create a Kedro hook plugin that monitors node execution times and saves metrics to a file. The plugin should:
The plugin must record for each node execution:
The metrics should be written to execution_metrics.json in the current directory after the pipeline finishes.
When a pipeline runs with this plugin installed:
execution_metrics.json @testnode_name and duration fields @test@generates
"""
A Kedro hook plugin for tracking pipeline execution metrics.
"""
class MetricsHook:
"""
Hook implementation that tracks node execution metrics.
Implements the required hook methods to capture timing information.
"""
passProvides the hooks framework and plugin system.