stack

Home > @infiniteobjects/models > RenderJobModel

RenderJobModel class

Render Job

Signature:

export declare class RenderJobModel extends BaseFirebaseEntity implements IRenderJobSchema, IRenderJob 

Extends: BaseFirebaseEntity

Implements: IRenderJobSchema, IRenderJob

Properties

Property Modifiers Type Description
callbackUrl?   string (Optional) Callback Url
dateCompleted?   Date (Optional) When the job ended
dateCreated   Date  
dateStarted?   Date (Optional) When the job started
dateUpdated   Date  
errorMsg?   string (Optional) Error message in the case the job failed
id   string Unique identifier of the document on the collection
payload   RenderJobPayload Render Job Payload
processingTime readonly number | undefined How long took to complete this Job in seconds
resourcesCreated   StorageObject[] Resources Created
result readonly IRenderJobResult Job Results
schemaVersion   RenderJobSchemaVersion  
stalled readonly boolean Is the Job stalled?
state   RenderJobState Render Job State
type   RenderJobType Render Job Type
worker   RenderJobWorker App that performed the job

Methods

Method Modifiers Description
afterInsert()   Called after storing the document for the first time
publish()   Publishes the Job
toEmbedded()   Serializes this class as an simplified object
toModel()   Serializes this class back to the model
toSchema()   Serializes this class to the Schema type