Skip to main content

TaskData

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

Index

Properties

optionalargs

args?: string

The arguments for the task (optional)

attempts

attempts: number

The number of attempts

chain

chain: blockchain

The blockchain to execute the task on

developer

developer: string

The developer of the repo executing the task

id

id: string

The ID of the user

optionalmaxAttempts

maxAttempts?: number

The maximum number of attempts (default is 5) (optional)

optionalmetadata

metadata?: string

The metadata for the task (optional)

repo

repo: string

The repo executing the task

optionalstartTime

startTime?: number

The time the task was started (optional)

task

task: string

The task to execute

taskId

taskId: string

The ID of the task

timeCreated

timeCreated: number

The time the task was created

optionaluserId

userId?: string

The ID of the user (optional)