Skip to main content

CrawlJob

Struct CrawlJob 

Source
pub struct CrawlJob {
Show 34 fields pub id: i64, pub name: String, pub seed_url: String, pub include_paths: Vec<String>, pub exclude_paths: Vec<String>, pub max_depth: i64, pub same_domain: i64, pub allow_subdomains: i64, pub extract_mode: String, pub extract_schema: Option<Value>, pub persona_id: Option<i64>, pub respect_robots: i64, pub delay_ms: i64, pub max_concurrent: i64, pub page_budget: i64, pub workflow_id: Option<i64>, pub data_workflow_id: Option<i64>, pub concierge_session_id: Option<i64>, pub status: String, pub pages_discovered: i64, pub pages_done: i64, pub pages_failed: i64, pub pages_skipped: i64, pub workers_active: i64, pub current_depth: i64, pub error: Option<String>, pub cancel_requested: i64, pub brand: String, pub is_terminal: bool, pub created_at: String, pub updated_at: Option<String>, pub started_at: Option<String>, pub completed_at: Option<String>, pub extra: Extra,
}
Expand description

A Dragnet crawl-job status view (api/v1/crawl.rs::to_view over store/crawl_jobs.rs::CrawlJob). One crawl fans a seed URL across a bounded in-process worker pool; extracted pages aggregate under the synthetic CrawlJob::data_workflow_id workflow, read back through the Data API. As with monitor rows, the boolean columns arrive as SQLite 0/1 ints and stay typed as i64 (not coerced).

Fields§

§id: i64§name: String§seed_url: String§include_paths: Vec<String>

Path-regex allowlist (parsed from JSON-TEXT into an array by the daemon view).

§exclude_paths: Vec<String>

Path-regex denylist.

§max_depth: i64§same_domain: i64

boolean as 0/1.

§allow_subdomains: i64

boolean as 0/1.

§extract_mode: String

markdown | schema.

§extract_schema: Option<Value>

The JSON schema object driving schema extraction (null for markdown).

§persona_id: Option<i64>§respect_robots: i64

boolean as 0/1.

§delay_ms: i64§max_concurrent: i64§page_budget: i64§workflow_id: Option<i64>

The synthetic per-crawl workflow the extracted pages aggregate under.

§data_workflow_id: Option<i64>

Alias of workflow_id the view adds for the Data API (/v1/workflows/{data_workflow_id}/data).

§concierge_session_id: Option<i64>§status: String

queued | mapping | crawling | stopping | completed | failed | cancelled (terminal: the last three) — treat as an open string enum.

§pages_discovered: i64§pages_done: i64§pages_failed: i64§pages_skipped: i64§workers_active: i64§current_depth: i64§error: Option<String>§cancel_requested: i64

boolean as 0/1.

§brand: String

Always "Dragnet".

§is_terminal: bool

Daemon-computed convenience: true for the terminal states.

§created_at: String§updated_at: Option<String>§started_at: Option<String>§completed_at: Option<String>§extra: Extra

Trait Implementations§

Source§

impl Clone for CrawlJob

Source§

fn clone(&self) -> CrawlJob

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CrawlJob

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CrawlJob

Source§

fn default() -> CrawlJob

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CrawlJob

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CrawlJob

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more