Skip to content

Commit

Permalink
fix: set start to true instead of false
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Dec 2, 2024
1 parent 408fc4f commit 2f8798b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apalis-core/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ impl Worker<Context> {
}
/// 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);
}
}
Expand Down

0 comments on commit 2f8798b

Please sign in to comment.