Task

data class Task(val taskId: String, val status: TaskStatus, val statusMessage: String? = null, val createdAt: String, val lastUpdatedAt: String, val ttl: Long?, val pollInterval: Long? = null) : TaskFields(source)

Data associated with a task.

Constructors

Link copied to clipboard
constructor(taskId: String, status: TaskStatus, statusMessage: String? = null, createdAt: String, lastUpdatedAt: String, ttl: Long?, pollInterval: Long? = null)

Properties

Link copied to clipboard
open override val createdAt: String

ISO 8601 timestamp when the task was created.

Link copied to clipboard
open override val lastUpdatedAt: String

ISO 8601 timestamp when the task was last updated.

Link copied to clipboard
open override val pollInterval: Long?

Suggested polling interval in milliseconds.

Link copied to clipboard
open override val status: TaskStatus

Current task state.

Link copied to clipboard
open override val statusMessage: String?

Optional human-readable message describing the current task state. This can provide context for any status, including reasons for "cancelled" status, summaries for "completed" status, or diagnostic information for "failed" status.

Link copied to clipboard
open override val taskId: String

The task identifier.

Link copied to clipboard
open override val ttl: Long?

Actual retention duration from creation in milliseconds, null for unlimited.