Struct sidekiq::ProcessorConfig
source · pub struct ProcessorConfig {
pub num_workers: usize,
/* private fields */
}Fields§
§num_workers: usizeThe number of Sidekiq workers that can run at the same time. Adjust as needed based on your workload and resource (cpu/memory/etc) usage.
If your workload is largely CPU-bound (computationally expensive), this should probably match your CPU count. This is the default.
If your workload is largely IO-bound (e.g. reading from a DB, making web requests and waiting for responses, etc), this can probably be quite a bit higher than your CPU count.
Implementations§
source§impl ProcessorConfig
impl ProcessorConfig
pub fn num_workers(self, num_workers: usize) -> Self
Trait Implementations§
source§impl Clone for ProcessorConfig
impl Clone for ProcessorConfig
source§fn clone(&self) -> ProcessorConfig
fn clone(&self) -> ProcessorConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessorConfig
impl RefUnwindSafe for ProcessorConfig
impl Send for ProcessorConfig
impl Sync for ProcessorConfig
impl Unpin for ProcessorConfig
impl UnwindSafe for ProcessorConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more