GpuJob class

Constructors

GpuJob({int? attempt, String? closeTime, String? failureCause, String? gpu, String? id, String? label, String? lastHeartbeat, String? leaseExpiry, String? runId, String? startTime, String? status, String? type, String? worker})
Returns a new GpuJob instance.

Properties

attempt ↔ int?
Attempt is which try this is, counting from 1. Above 1 means the job was retried after a failed or abandoned run.
getter/setter pair
closeTime ↔ String?
CloseTime is when the job reached a terminal state, RFC 3339. Empty means it is still live — queued, running or stalled.
getter/setter pair
failureCause ↔ String?
FailureCause is the engine's reason the job failed. Empty unless it did.
getter/setter pair
gpu ↔ String?
GPU is the node this job is aimed AT — the lane "gpu:
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the job's id, and the id the cancel route takes. The dispatcher sets it equal to the render's prompt id, so it is the same value the studio knows the job by.
getter/setter pair
label ↔ String?
Label is the cheap human name for the render — the output filename prefix lifted out of the submitted graph. Empty when the graph carried none. The graph itself is never in this list; the tasks describe endpoint serves it.
getter/setter pair
lastHeartbeat ↔ String?
LastHeartbeat is the claiming worker's most recent beat on this job, RFC 3339 — the evidence a long render is still alive rather than wedged.
getter/setter pair
leaseExpiry ↔ String?
LeaseExpiry is when the worker's claim lapses, RFC 3339. Past it with the job still STARTED, the claimant is presumed dead and Status reads "stalled".
getter/setter pair
runId ↔ String?
RunID identifies this execution of the job. It equals ID for a job the dispatcher submitted, which is why a cancel that omits it still works.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startTime ↔ String?
StartTime is when a worker began executing the job, RFC 3339. Empty while it is still queued.
getter/setter pair
status ↔ String?
Status is the job's lifecycle state: queued, running, completed, failed or canceled — plus "stalled", which is this surface's own reading of a job that is STARTED whose worker died: its lease has elapsed and no reaper has taken it back yet. Without it such a job reads "running" forever. An engine state this surface does not recognize passes through lower-cased rather than being coerced into one of these.
getter/setter pair
type ↔ String?
Type is the work being done ("studio.render") — what the claiming worker has to be able to execute.
getter/setter pair
worker ↔ String?
Worker is the node that actually CLAIMED the job, which is not always the one it was aimed at: a shared-lane job has no GPU but does have a Worker once picked up. Empty while the job is still waiting.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → GpuJob?
Returns a new GpuJob instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GpuJob>
mapFromJson(dynamic json) → Map<String, GpuJob>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GpuJob>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.