Skip to main content

JobData

JobData is the data structure for a job, keeping track of the job status, result, logs, and metadata.

Index

Properties

optionalargs

args?: string

The arguments for the job (optional)

optionalbilledDuration

billedDuration?: number

The duration the job was billed for in ms (optional)

chain

chain: blockchain

The blockchain to execute the job on

developer

developer: string

The developer of the repo executing the job

optionalfilename

filename?: string

The filename where transactions data is stored (optional)

id

id: string

The ID of the user

optionalisFullLog

isFullLog?: boolean

Whether the logs are full (optional)

jobId

jobId: string

The ID of the job

jobStatus

jobStatus: JobStatus

The status of the job

optionallogStreams

logStreams?: LogStream[]

The log streams of the job (optional)

optionallogs

logs?: string[]

The logs of the job (optional)

optionalmetadata

metadata?: string

The metadata for the job (optional)

repo

repo: string

The repo executing the job

optionalresult

result?: string

The result of the job (optional)

optionaltask

task?: string

The task to execute (optional)

optionaltaskId

taskId?: string

The ID of the task (optional)

timeCreated

timeCreated: number

The time the job was created

optionaltimeFailed

timeFailed?: number

The time the job failed (optional)

optionaltimeFinished

timeFinished?: number

The time the job was finished (optional)

optionaltimeStarted

timeStarted?: number

The time the job was started (optional)

optionaltimeUsed

timeUsed?: number

The time the job result was used (optional)

txNumber

txNumber: number

The number of transactions

optionaluserId

userId?: string

The ID of the user (optional)