pub struct PoolConfig {
pub workers: usize,
pub max_prompts_per_worker: u32,
pub max_retries: u32,
pub backoff_base: Duration,
pub backoff_cap: Duration,
pub default_options: RubricOptions,
pub codex_acp_binary: PathBuf,
pub extra_env: Vec<(OsString, OsString)>,
pub submit_timeout: Duration,
pub source_codex_home: Option<PathBuf>,
}Expand description
Configuration for a RubricPool.
Fields§
§workers: usizeNumber of worker processes to keep alive.
max_prompts_per_worker: u32Number of prompts after which a worker is recycled.
max_retries: u32Number of retries for recoverable worker or rate-limit failures.
backoff_base: DurationInitial retry backoff.
backoff_cap: DurationMaximum retry backoff.
default_options: RubricOptionsOptions applied when a submitted job omits an override.
codex_acp_binary: PathBufPath to the codex-acp executable.
extra_env: Vec<(OsString, OsString)>Extra environment variables for worker processes.
submit_timeout: DurationMaximum time to wait for one submitted job.
source_codex_home: Option<PathBuf>Optional Codex home directory to seed into worker-local homes.
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolConfig
impl Debug for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnsafeUnpin for PoolConfig
impl UnwindSafe for PoolConfig
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