Metadata about task execution

interface TaskMetadata {
    createdAt: Date;
    startedAt?: Date;
    completedAt?: Date;
    assignedAgent?: string;
    retryCount: number;
    maxRetries: number;
    timeout?: number;
}

Properties

createdAt: Date

When the task was created

startedAt?: Date

When the task started executing

completedAt?: Date

When the task completed or failed

assignedAgent?: string

ID of the agent assigned to this task

retryCount: number

Number of times this task has been retried

maxRetries: number

Maximum number of retry attempts allowed

timeout?: number

Timeout in milliseconds for task execution