From 3c17047377aca666a015eaf0f06190d3dfa28c1c Mon Sep 17 00:00:00 2001 From: Julius Unverfehrt Date: Tue, 28 Mar 2023 17:13:59 +0200 Subject: [PATCH] fix monitoring preventing operation kwargs for processing fn getting forwarded --- pyinfra/payload_processing/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyinfra/payload_processing/monitor.py b/pyinfra/payload_processing/monitor.py index a507bd9..1a97eb5 100644 --- a/pyinfra/payload_processing/monitor.py +++ b/pyinfra/payload_processing/monitor.py @@ -35,11 +35,11 @@ class PrometheusMonitor: return self._add_result_monitoring(process_fn) def _add_result_monitoring(self, process_fn: Callable): - def inner(data: Any): + def inner(data: Any, **kwargs): start = time() - result: Sized = process_fn(data) + result: Sized = process_fn(data, **kwargs) runtime = time() - start