GetTaskResult

data class GetTaskResult(val taskId: String, val status: TaskStatus, val statusMessage: String? = null, val createdAt: String, val lastUpdatedAt: String, val ttl: Long?, val pollInterval: Long? = null, val meta: JsonObject? = null) : ClientResult, ServerResult, TaskFields(source)

The response to a tasks/get request.

Contains all Task fields flattened into the result (intersection of Result and Task).

Constructors

Link copied to clipboard
constructor(taskId: String, status: TaskStatus, statusMessage: String? = null, createdAt: String, lastUpdatedAt: String, ttl: Long?, pollInterval: Long? = null, meta: JsonObject? = 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
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this response.

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.

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.