TaskSuspendedEvent
data class TaskSuspendedEvent(val taskId: String, val eventId: String, val createdAt: String, val payload: JsonObject = JsonObject(emptyMap()), val suspension: SuspensionPayload) : KnownTaskEvent
Emitted when the task enters a suspended state.
Constructors
Link copied to clipboard
constructor(taskId: String, eventId: String, createdAt: String, payload: JsonObject = JsonObject(emptyMap()), suspension: SuspensionPayload)
Properties
Functions
Link copied to clipboard
Tries to parse the payload as TaskFailedPayload if the event type matches.
Link copied to clipboard
Tries to parse the payload as TaskProgressPayload if the event type matches.
Link copied to clipboard
Returns true if this event indicates the final state of the task.