From 84820dcc82215668f63d713306580b157127b4e1 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 13 Dec 2024 23:28:44 +0100 Subject: [PATCH] fix: with child token as well Signed-off-by: kjuulh --- crates/drift/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/drift/src/lib.rs b/crates/drift/src/lib.rs index f720499..adcd903 100644 --- a/crates/drift/src/lib.rs +++ b/crates/drift/src/lib.rs @@ -37,6 +37,7 @@ where let start = std::time::Instant::now(); tracing::debug!("running job"); + let child_token = cancellation_token.child_token(); if let Err(e) = drifter.execute(child_token).await { tracing::error!("drift job failed with error: {}, stopping routine", e); cancellation_token.cancel();