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§
- Task
Error - Reported by the executor on failure.
- Task
History Record - A task that has completed or permanently failed.
- Task
Record - A task in the active queue (pending, running, or paused).
- Task
Result - Reported by the executor on successful completion.
- Task
Submission - Parameters for submitting a new task.
- Type
Stats - Aggregate statistics for a task type from history.
Enums§
- History
Status - Terminal state of a task in history.
- Parent
Resolution - Resolution of a parent task after a child completes or fails.
- Submit
Outcome - Result of a task submission attempt.
- Task
Lookup - Unified lookup result for querying a task by its dedup inputs.
- Task
Status - Lifecycle state of a task in the active queue.
Constants§
- MAX_
PAYLOAD_ BYTES - Maximum payload size in bytes (1 MiB).
Traits§
- Typed
Task - 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.