Documentation
¶
Index ¶
- func CancelledTaskMessage(tenantId string, taskId int64, taskInsertedAt pgtype.Timestamptz, ...) (*msgqueue.Message, error)
- func CompletedTaskMessage(tenantId string, taskId int64, taskInsertedAt pgtype.Timestamptz, ...) (*msgqueue.Message, error)
- func CreatedDAGMessage(tenantId string, dag *v1.DAGWithData) (*msgqueue.Message, error)
- func CreatedTaskMessage(tenantId string, task *sqlcv1.V1Task) (*msgqueue.Message, error)
- func FailedTaskMessage(tenantId string, taskId int64, taskInsertedAt pgtype.Timestamptz, ...) (*msgqueue.Message, error)
- func MonitoringEventMessageFromActionEvent(tenantId string, taskId int64, retryCount int32, ...) (*msgqueue.Message, error)
- func MonitoringEventMessageFromInternal(tenantId string, payload CreateMonitoringEventPayload) (*msgqueue.Message, error)
- func NewInternalEventMessage(tenantId string, timestamp time.Time, events ...v1.InternalTaskEvent) (*msgqueue.Message, error)
- func NotifyTaskCreated(tenantId string, tasks []*sqlcv1.V1Task) (*msgqueue.Message, error)
- func NotifyTaskReleased(tenantId string, tasks []*sqlcv1.ReleaseTasksRow) (*msgqueue.Message, error)
- func TriggerTaskMessage(tenantId string, payloads ...*v1.WorkflowNameTriggerOpts) (*msgqueue.Message, error)
- type CancelTasksPayload
- type CancelledTaskPayload
- type CheckTenantQueuesPayload
- type CompletedTaskPayload
- type CreateMonitoringEventPayload
- type CreatedDAGPayload
- type CreatedTaskPayload
- type FailedTaskPayload
- type NotifyFinalizedPayload
- type ReplayTasksPayload
- type SignalTaskCancelledPayload
- type StreamEventPayload
- type TaskAssignedBulkTaskPayload
- type UserEventTaskPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelledTaskMessage ¶
func CompletedTaskMessage ¶
func CreatedDAGMessage ¶
func CreatedTaskMessage ¶
func FailedTaskMessage ¶
func MonitoringEventMessageFromInternal ¶
func MonitoringEventMessageFromInternal(tenantId string, payload CreateMonitoringEventPayload) (*msgqueue.Message, error)
func NewInternalEventMessage ¶
func NotifyTaskCreated ¶
func NotifyTaskReleased ¶
func TriggerTaskMessage ¶
Types ¶
type CancelTasksPayload ¶
type CancelTasksPayload struct {
Tasks []v1.TaskIdInsertedAtRetryCount `json:"tasks"`
}
type CancelledTaskPayload ¶
type CancelledTaskPayload struct { // (required) the task id TaskId int64 `validate:"required"` // (required) the task inserted at InsertedAt pgtype.Timestamptz // (required) the task external id ExternalId string // (required) the workflow run id WorkflowRunId string // (required) the retry count RetryCount int32 // (required) the reason for cancellation EventType sqlcv1.V1EventTypeOlap // (optional) whether the task should notify the worker ShouldNotify bool }
type CompletedTaskPayload ¶
type CompletedTaskPayload struct { // (required) the task id TaskId int64 `validate:"required"` // (required) the task inserted at InsertedAt pgtype.Timestamptz // (required) the task external id ExternalId string // (required) the workflow run id WorkflowRunId string // (required) the retry count RetryCount int32 // (optional) the output data Output []byte }
type CreateMonitoringEventPayload ¶
type CreateMonitoringEventPayload struct { TaskId int64 `json:"task_id"` RetryCount int32 `json:"retry_count"` WorkerId *string `json:"worker_id,omitempty"` EventType sqlcv1.V1EventTypeOlap `json:"event_type"` EventTimestamp time.Time `json:"event_timestamp" validate:"required"` EventPayload string `json:"event_payload" validate:"required"` EventMessage string `json:"event_message,omitempty"` }
type CreatedDAGPayload ¶
type CreatedDAGPayload struct {
*v1.DAGWithData
}
type CreatedTaskPayload ¶
type FailedTaskPayload ¶
type FailedTaskPayload struct { // (required) the task id TaskId int64 `validate:"required"` // (required) the task inserted at InsertedAt pgtype.Timestamptz // (required) the task external id ExternalId string // (required) the workflow run id WorkflowRunId string // (required) the retry count RetryCount int32 // (required) whether this is an application-level error or an internal error on the Hatchet side IsAppError bool // (optional) the error message ErrorMsg string }
type NotifyFinalizedPayload ¶
type NotifyFinalizedPayload struct { // (required) the external id (can either be a workflow run id or single task) ExternalId string `validate:"required"` // (required) the status of the task Status sqlcv1.V1ReadableStatusOlap }
type ReplayTasksPayload ¶
type ReplayTasksPayload struct {
Tasks []v1.TaskIdInsertedAtRetryCount `json:"tasks"`
}
type SignalTaskCancelledPayload ¶
type SignalTaskCancelledPayload struct { // (required) the worker id WorkerId string `validate:"required,uuid"` // (required) the task id TaskId int64 `validate:"required"` // (required) the task inserted at InsertedAt pgtype.Timestamptz // (required) the retry count RetryCount int32 }
type StreamEventPayload ¶
type StreamEventPayload struct { WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"` StepRunId string `json:"step_run_id" validate:"required,uuid"` CreatedAt time.Time `json:"created_at" validate:"required"` Payload []byte `json:"payload"` RetryCount *int32 `json:"retry_count,omitempty"` }
type UserEventTaskPayload ¶
Click to show internal directories.
Click to hide internal directories.