TaskHistoryEntry class

Record of a single task execution.

Constructors

TaskHistoryEntry({required String executionId, required String taskName, required DateTime startTime, DateTime? endTime, required String status, required int attempt, required int maxAttempts, String? error, String? stackTrace, Map<String, dynamic>? input, Map<String, dynamic>? output})
const

Properties

attempt → int
Attempt number (1 for first, 2+ if retried)
final
durationMs → int?
Execution duration in milliseconds
no setter
endTime → DateTime?
When execution finished (null if still running)
final
error → String?
Error message if failed
final
executionId → String
Unique execution ID
final
hashCode → int
The hash code for this object.
no setterinherited
input → Map<String, dynamic>?
Input data passed to task
final
isFailed → bool
Whether task failed
no setter
isRunning → bool
Whether task is still running
no setter
isSuccess → bool
Whether task succeeded
no setter
maxAttempts → int
Max retries configured
final
output → Map<String, dynamic>?
Output data returned by task (if succeeded)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → String?
Stack trace if failed
final
startTime → DateTime
When execution started
final
status → String
Status: 'queued', 'running', 'succeeded', 'failed', 'retrying', 'cancelled'
final
taskName → String
Name of the task
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Serialize to JSON for storage
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic> map) → TaskHistoryEntry
Deserialize from JSON