pub struct CrawlerConfig {
pub request_max_retries: usize,
pub task_max_errors: usize,
pub module_max_errors: usize,
pub module_locker_ttl: u64,
pub node_id: Option<String>,
pub task_concurrency: Option<usize>,
pub publish_concurrency: Option<usize>,
pub parser_concurrency: Option<usize>,
pub error_task_concurrency: Option<usize>,
pub backpressure_retry_delay_ms: Option<u64>,
pub dedup_ttl_secs: Option<u64>,
pub idle_stop_secs: Option<u64>,
}Expand description
Crawler Configuration
Fields§
§request_max_retries: usizeMaximum retries for failed requests
task_max_errors: usizeMaximum allowed errors per task
module_max_errors: usizeMaximum allowed errors per module
module_locker_ttl: u64TTL for module locks
node_id: Option<String>Optional node ID (useful for stable node identity across restarts)
task_concurrency: Option<usize>Concurrency for task processor (JS execution)
publish_concurrency: Option<usize>Concurrency for request publishing
parser_concurrency: Option<usize>Concurrency for parser task processor
error_task_concurrency: Option<usize>Concurrency for error task processor
backpressure_retry_delay_ms: Option<u64>Delay in milliseconds before retrying when backpressure is detected
dedup_ttl_secs: Option<u64>Request deduplication TTL in seconds (default: 3600)
idle_stop_secs: Option<u64>Idle stop timeout in seconds (stop engine if local queues have no data for this duration)
Trait Implementations§
Source§impl Clone for CrawlerConfig
impl Clone for CrawlerConfig
Source§fn clone(&self) -> CrawlerConfig
fn clone(&self) -> CrawlerConfig
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 CrawlerConfig
impl Debug for CrawlerConfig
Source§impl<'de> Deserialize<'de> for CrawlerConfig
impl<'de> Deserialize<'de> for CrawlerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CrawlerConfig
impl RefUnwindSafe for CrawlerConfig
impl Send for CrawlerConfig
impl Sync for CrawlerConfig
impl Unpin for CrawlerConfig
impl UnsafeUnpin for CrawlerConfig
impl UnwindSafe for CrawlerConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more