Skip to main content

Module task

Module task 

Source
Expand description

Task types, submission parameters, and the TypedTask trait.

This module defines the data structures that flow through the scheduler: TaskSubmission for enqueuing work, TaskRecord for in-flight tasks, TaskHistoryRecord for completed/failed results, and TypedTask for strongly-typed task payloads with built-in serialization.

Structs§

TaskError
Reported by the executor on failure.
TaskHistoryRecord
A task that has completed or permanently failed.
TaskRecord
A task in the active queue (pending, running, or paused).
TaskResult
Reported by the executor on successful completion.
TaskSubmission
Parameters for submitting a new task.
TypeStats
Aggregate statistics for a task type from history.

Enums§

HistoryStatus
Terminal state of a task in history.
ParentResolution
Resolution of a parent task after a child completes or fails.
SubmitOutcome
Result of a task submission attempt.
TaskLookup
Unified lookup result for querying a task by its dedup inputs.
TaskStatus
Lifecycle state of a task in the active queue.

Constants§

MAX_PAYLOAD_BYTES
Maximum payload size in bytes (1 MiB).

Traits§

TypedTask
A strongly-typed task that bundles serialization, task type name, and default IO estimates.

Functions§

generate_dedup_key
Generate a dedup key by hashing the task type and payload.