diff --git a/bin/supervisor/src/builder.rs b/bin/supervisor/src/builder.rs index 72c5ec1..abd2337 100644 --- a/bin/supervisor/src/builder.rs +++ b/bin/supervisor/src/builder.rs @@ -44,6 +44,21 @@ impl SupervisorBuilder { } } + /// Set the Redis URL for the supervisor and underlying job client + pub fn redis_url>(mut self, url: S) -> Self { + let url_str = url.into(); + self.redis_url = url_str.clone(); + self.client_builder = self.client_builder.redis_url(url_str); + self + } + + /// Set the namespace for Redis keys used by the job client + pub fn namespace>(mut self, namespace: S) -> Self { + let ns = namespace.into(); + self.client_builder = self.client_builder.namespace(ns); + self + } + /// Set the Osiris URL for queries pub fn osiris_url>(mut self, url: S) -> Self { self.osiris_url = Some(url.into());