response¶
response
¶
The status message a remote job sends back to the client.
Each update NDIF pushes for a job — whether streamed over a blocking websocket or
saved to the object store and polled — arrives as a ResponseModel. Its
Status names where the job is in its lifecycle; on COMPLETED the
returned values ride in data.
Status
¶
Bases: str, Enum
Where a remote job is in its lifecycle (or a transient log message).
ResponseModel
¶
Bases: BaseModel
One status update for a remote job, optionally carrying its result.
Streamed over the websocket for a blocking job, or saved to the object store
and fetched by the client for a non-blocking one. data holds the
saved values only on a COMPLETED response.
model_config
class-attribute
instance-attribute
¶
unpickle
classmethod
¶
unpickle(data: bytes) -> ResponseModel
Rebuild a ResponseModel from pickle bytes (onto CPU).