From a46b508ba69305ba20253649f3c45c7ffb0ff362 Mon Sep 17 00:00:00 2001 From: cosmod Date: Mon, 27 Jan 2025 15:44:35 +0800 Subject: [PATCH] Release version 0.31.3 --- crates/zino-core/Cargo.toml | 2 +- crates/zino-core/src/schedule/context.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/zino-core/Cargo.toml b/crates/zino-core/Cargo.toml index 48f3b945..98ded009 100644 --- a/crates/zino-core/Cargo.toml +++ b/crates/zino-core/Cargo.toml @@ -241,7 +241,7 @@ anyhow = "1.0.95" arrayvec = "0.7.6" base64-simd = "0.8.0" criterion = "0.5.1" -data-encoding = "2.6.0" +data-encoding = "2.7.0" indexmap = "2.7.1" libsm = "0.6.0" ryu = "1.0.18" diff --git a/crates/zino-core/src/schedule/context.rs b/crates/zino-core/src/schedule/context.rs index f8ca8d0d..9c3456a2 100644 --- a/crates/zino-core/src/schedule/context.rs +++ b/crates/zino-core/src/schedule/context.rs @@ -243,6 +243,12 @@ impl JobContext { pub fn next_tick(&self) -> Option { self.next_tick } + + /// Returns the execution error. + #[inline] + pub fn execution_error(&self) -> Option<&Error> { + self.execution_error.as_ref() + } } impl Default for JobContext {