TaskDetails constructor
const
TaskDetails({
- required LxStatus status,
- String? executionId,
- String ownerPath = '?',
- LevitTaskPhase phase = LevitTaskPhase.completed,
- LevitTaskMetadata metadata = LevitTaskMetadata.none,
- TaskPriority priority = TaskPriority.normal,
- int attempt = 0,
- LevitTaskOutcome? outcome,
- double weight = 1.0,
- double progress = 0.0,
- bool started = false,
- DateTime? queuedAt,
- DateTime? startedAt,
- DateTime? finishedAt,
- Duration? queueDuration,
- Duration? runDuration,
Creates task details.
Implementation
const TaskDetails({
required this.status,
this.executionId,
this.ownerPath = '?',
this.phase = LevitTaskPhase.completed,
this.metadata = LevitTaskMetadata.none,
this.priority = TaskPriority.normal,
this.attempt = 0,
this.outcome,
this.weight = 1.0,
this.progress = 0.0,
this.started = false,
this.queuedAt,
this.startedAt,
this.finishedAt,
this.queueDuration,
this.runDuration,
});