pub struct Task {Show 16 fields
pub id: TaskUuid,
pub name: String,
pub operator_id: String,
pub input_collection_id: CollectionUuid,
pub output_collection_name: String,
pub output_collection_id: Option<String>,
pub params: Option<String>,
pub tenant_id: String,
pub database_id: String,
pub last_run: Option<SystemTime>,
pub next_run: Option<SystemTime>,
pub completion_offset: u64,
pub min_records_for_task: u64,
pub is_deleted: bool,
pub created_at: SystemTime,
pub updated_at: SystemTime,
}Expand description
Task represents an asynchronous task that is triggered by collection writes to map records from a source collection to a target collection.
Fields§
§id: TaskUuidUnique identifier for the task
name: StringHuman-readable name for the task instance
operator_id: StringName of the operator/built-in definition this task uses (despite field name, this is a name not a UUID)
input_collection_id: CollectionUuidSource collection that triggers the task
output_collection_name: StringName of target collection where task output is stored
output_collection_id: Option<String>ID of the output collection (lazily filled in after creation)
params: Option<String>Optional JSON parameters for the operator
tenant_id: StringTenant name this task belongs to (despite field name, this is a name not a UUID)
database_id: StringDatabase name this task belongs to (despite field name, this is a name not a UUID)
last_run: Option<SystemTime>Timestamp of the last successful task run
next_run: Option<SystemTime>Timestamp when the task should next run (None if not yet scheduled)
completion_offset: u64Completion offset: the WAL position up to which the task has processed records
min_records_for_task: u64Minimum number of new records required before the task runs again
is_deleted: boolWhether the task has been soft-deleted
created_at: SystemTimeTimestamp when the task was created
updated_at: SystemTimeTimestamp when the task was last updated
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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>,
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.