Task

@Serializable
data class Task(val id: UUID, val planId: UUID, val partitionKey: Int, val status: TaskStatus, val createdAt: Long, val executedAt: Long?, val nextExecutionAt: Long?)

Data class representing a task.

Constructors

Link copied to clipboard
constructor(id: UUID, planId: UUID, partitionKey: Int, status: TaskStatus, createdAt: Long, executedAt: Long?, nextExecutionAt: Long?)

Properties

Link copied to clipboard

The timestamp when the task was created.

Link copied to clipboard

The timestamp when the task was executed (optional).

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val id: UUID

The unique identifier of the task.

Link copied to clipboard

The timestamp for the next execution of the task (optional).

Link copied to clipboard

The partition key for the task. This is the partition that the task will be stored in.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val planId: UUID

The unique identifier of the plan associated with the task.

Link copied to clipboard

The current status of the task.