or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/kedro@1.1.x
tile.json

tessl/pypi-kedro

tessl install tessl/pypi-kedro@1.1.0

Kedro 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%

task.mdevals/scenario-11/

Custom Kedro Hook Plugin

Build a Kedro plugin that implements custom hooks to track pipeline execution metrics.

Requirements

Create a Kedro hook plugin that monitors node execution times and saves metrics to a file. The plugin should:

  1. Track the execution time of each node in a pipeline
  2. Store execution metrics in a JSON file after the pipeline completes

The plugin must record for each node execution:

  • Node name
  • Execution duration in seconds (rounded to 3 decimal places)

The metrics should be written to execution_metrics.json in the current directory after the pipeline finishes.

Expected Behavior

When a pipeline runs with this plugin installed:

  • Each node execution is tracked with its name and duration @test
  • After pipeline completion, metrics are written to execution_metrics.json @test
  • The JSON file contains a list of objects with node_name and duration fields @test

Implementation

@generates

API

"""
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.
    """
    pass

Dependencies { .dependencies }

kedro { .dependency }

Provides the hooks framework and plugin system.