RunningEntry class
State the scheduler tracks for a currently running worker.
Constructors
-
RunningEntry({required Issue issue, required Workspace workspace, required RunAttemptStatus status, required StreamSubscription<
RunnerEvent> subscription, required DateTime startedAt, RunnerEvent? lastEvent, DateTime? lastEventAt, RunnerTokenUsage usage = const RunnerTokenUsage(), int turnCount = 0}) - Creates a running entry.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- issue ↔ Issue
-
Issue snapshot at dispatch time. Updated by reconciliation.
getter/setter pair
- lastEvent ↔ RunnerEvent?
-
Most recent runner event.
getter/setter pair
- lastEventAt ↔ DateTime?
-
Time the most recent event was observed.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedAt → DateTime
-
Wall-clock time when the worker started.
final
- status ↔ RunAttemptStatus
-
Current attempt status.
getter/setter pair
-
subscription
↔ StreamSubscription<
RunnerEvent> -
Subscription to the runner event stream. Cancelled by reconciliation
or shutdown. Mutable so the scheduler can attach the real subscription
after constructing the entry.
getter/setter pair
- turnCount ↔ int
-
Number of completed turns inside the worker.
getter/setter pair
- usage ↔ RunnerTokenUsage
-
Aggregate token usage seen so far for this run.
getter/setter pair
- workspace → Workspace
-
Workspace assigned to the worker.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
JSON view used by snapshots and
/api/v1/state. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited