Skip to content

cloacina::models::task_execution

Rust

Task Execution Model

This module defines domain structures for tracking task executions. These are API-level types; backend-specific models handle database storage.

pub

Derives: Debug, Clone, Serialize, Deserialize

Represents a task execution record (domain type).

Name Type Description
id UniversalUuid
workflow_execution_id UniversalUuid
task_name String
status String
started_at Option<UniversalTimestamp>
completed_at Option<UniversalTimestamp>
attempt i32
max_attempts i32
error_details Option<String>
trigger_rules String
task_configuration String
retry_at Option<UniversalTimestamp>
last_error Option<String>
recovery_attempts i32
last_recovery_at Option<UniversalTimestamp>
sub_status Option<String>
claimed_by Option<UniversalUuid>
heartbeat_at Option<UniversalTimestamp>
created_at UniversalTimestamp
updated_at UniversalTimestamp

pub

Derives: Debug, Clone, Serialize, Deserialize

Structure for creating new task executions (domain type).

Name Type Description
workflow_execution_id UniversalUuid
task_name String
status String
attempt i32
max_attempts i32
trigger_rules String
task_configuration String