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.
Structs
Section titled “Structs”struct TaskExecution
Section titled “struct TaskExecution”pub
Derives: Debug, Clone, Serialize, Deserialize
Represents a task execution record (domain type).
Fields
Section titled “Fields”| 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 |
struct NewTaskExecution
Section titled “struct NewTaskExecution”pub
Derives: Debug, Clone, Serialize, Deserialize
Structure for creating new task executions (domain type).
Fields
Section titled “Fields”| Name | Type | Description |
|---|---|---|
workflow_execution_id |
UniversalUuid |
|
task_name |
String |
|
status |
String |
|
attempt |
i32 |
|
max_attempts |
i32 |
|
trigger_rules |
String |
|
task_configuration |
String |