pub struct Config { /* private fields */ }
Expand description
Config for a RedisStorage
Implementations§
Source§impl Config
impl Config
Sourcepub fn get_poll_interval(&self) -> &Duration
pub fn get_poll_interval(&self) -> &Duration
Get the interval of polling
Sourcepub fn get_buffer_size(&self) -> usize
pub fn get_buffer_size(&self) -> usize
Get the number of jobs to fetch
Sourcepub fn get_keep_alive(&self) -> &Duration
pub fn get_keep_alive(&self) -> &Duration
get the keep live rate
Sourcepub fn get_enqueue_scheduled(&self) -> &Duration
pub fn get_enqueue_scheduled(&self) -> &Duration
get the enqueued setting
Sourcepub fn get_namespace(&self) -> &String
pub fn get_namespace(&self) -> &String
get the namespace
Sourcepub fn set_poll_interval(self, poll_interval: Duration) -> Self
pub fn set_poll_interval(self, poll_interval: Duration) -> Self
get the poll interval
Sourcepub fn set_buffer_size(self, buffer_size: usize) -> Self
pub fn set_buffer_size(self, buffer_size: usize) -> Self
set the buffer setting
Sourcepub fn set_keep_alive(self, keep_alive: Duration) -> Self
pub fn set_keep_alive(self, keep_alive: Duration) -> Self
set the keep-alive setting
Sourcepub fn set_enqueue_scheduled(self, enqueue_scheduled: Duration) -> Self
pub fn set_enqueue_scheduled(self, enqueue_scheduled: Duration) -> Self
get the enqueued setting
Sourcepub fn set_namespace(self, namespace: &str) -> Self
pub fn set_namespace(self, namespace: &str) -> Self
set the namespace for the Storage
Sourcepub fn active_jobs_list(&self) -> String
pub fn active_jobs_list(&self) -> String
Returns the Redis key for the list of pending jobs associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the pending jobs list.
Sourcepub fn consumers_set(&self) -> String
pub fn consumers_set(&self) -> String
Returns the Redis key for the set of consumers associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the consumers set.
Sourcepub fn dead_jobs_set(&self) -> String
pub fn dead_jobs_set(&self) -> String
Returns the Redis key for the set of dead jobs associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the dead jobs set.
Sourcepub fn done_jobs_set(&self) -> String
pub fn done_jobs_set(&self) -> String
Returns the Redis key for the set of done jobs associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the done jobs set.
Sourcepub fn failed_jobs_set(&self) -> String
pub fn failed_jobs_set(&self) -> String
Returns the Redis key for the set of failed jobs associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the failed jobs set.
Sourcepub fn inflight_jobs_set(&self) -> String
pub fn inflight_jobs_set(&self) -> String
Returns the Redis key for the set of inflight jobs associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the inflight jobs set.
Sourcepub fn job_data_hash(&self) -> String
pub fn job_data_hash(&self) -> String
Returns the Redis key for the hash storing job data associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the job data hash.
Sourcepub fn scheduled_jobs_set(&self) -> String
pub fn scheduled_jobs_set(&self) -> String
Returns the Redis key for the set of scheduled jobs associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the scheduled jobs set.
Sourcepub fn signal_list(&self) -> String
pub fn signal_list(&self) -> String
Returns the Redis key for the list of signals associated with the queue. The key is dynamically generated using the namespace of the queue.
§Returns
A String
representing the Redis key for the signal list.
Sourcepub fn reenqueue_orphaned_after(&self) -> Duration
pub fn reenqueue_orphaned_after(&self) -> Duration
Gets the reenqueue_orphaned_after duration.
Sourcepub fn reenqueue_orphaned_after_mut(&mut self) -> &mut Duration
pub fn reenqueue_orphaned_after_mut(&mut self) -> &mut Duration
Gets a mutable reference to the reenqueue_orphaned_after.
Sourcepub fn set_reenqueue_orphaned_after(self, after: Duration) -> Self
pub fn set_reenqueue_orphaned_after(self, after: Duration) -> Self
Occasionally some workers die, or abandon jobs because of panics. This is the time a task takes before its back to the queue
Defaults to 5 minutes