From 2f8798b80112c937cdeb1dab75f2038da728ed2f Mon Sep 17 00:00:00 2001 From: geofmureithi Date: Mon, 2 Dec 2024 11:44:01 +0300 Subject: [PATCH] fix: set start to true instead of false --- packages/apalis-core/src/worker/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/apalis-core/src/worker/mod.rs b/packages/apalis-core/src/worker/mod.rs index 920e56e1..bb076210 100644 --- a/packages/apalis-core/src/worker/mod.rs +++ b/packages/apalis-core/src/worker/mod.rs @@ -212,8 +212,8 @@ impl Worker { } /// Start running the worker pub fn start(&self) { - self.state.running.store(false, Ordering::Relaxed); - self.state.is_ready.store(false, Ordering::Relaxed); + self.state.running.store(true, Ordering::Relaxed); + self.state.is_ready.store(true, Ordering::Release); self.emit(Event::Start); } }