Help us shape the future of Go! Take the 2026 Go Developer Survey

tasktypes

package
v0.73.101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTenantQueueToTask

func CheckTenantQueueToTask(tenantId, queueName string, isStepQueued bool, isSlotReleased bool) *msgqueue.Message

func JobRunCancelledToTask

func JobRunCancelledToTask(tenantId, jobRunId string, reason *string) *msgqueue.Message

func JobRunQueuedToTask

func JobRunQueuedToTask(tenantId, jobRunId string) *msgqueue.Message

func StepRunCancelToTask

func StepRunCancelToTask(stepRun *dbsqlc.GetStepRunForEngineRow, reason string, propagateToChildren bool) *msgqueue.Message

func StepRunFailedToTask

func StepRunFailedToTask(stepRun *dbsqlc.GetStepRunForEngineRow, errorReason string, failedAt *time.Time) *msgqueue.Message

func StepRunQueuedToTask

func StepRunQueuedToTask(stepRun *dbsqlc.GetStepRunForEngineRow) *msgqueue.Message

func StepRunReplayToTask

func StepRunReplayToTask(stepRun *dbsqlc.GetStepRunForEngineRow, inputData []byte) *msgqueue.Message

func StepRunRetryToTask

func StepRunRetryToTask(stepRun *dbsqlc.GetStepRunForEngineRow, inputData []byte, err string) *msgqueue.Message

func TenantToGroupKeyActionRequeueTask

func TenantToGroupKeyActionRequeueTask(tenant dbsqlc.Tenant) *msgqueue.Message

func WorkflowRunFinishedToTask

func WorkflowRunFinishedToTask(tenantId, workflowRunId, status string) *msgqueue.Message

func WorkflowRunQueuedToTask

func WorkflowRunQueuedToTask(tenantId, workflowRunId string) *msgqueue.Message

func WorkflowRunReplayToTask

func WorkflowRunReplayToTask(tenantId, workflowRunId string) *msgqueue.Message

Types

type CancelCronTaskMetadata

type CancelCronTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type CancelCronTaskPayload

type CancelCronTaskPayload struct {
	CronParentId      string `json:"cron_parent_id" validate:"required,uuid"`
	Cron              string `json:"cron" validate:"required"`
	WorkflowVersionId string `json:"workflow_version_id" validate:"required,uuid"`
}

type CancelGetGroupKeyRunTimeoutTaskMetadata

type CancelGetGroupKeyRunTimeoutTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type CancelGetGroupKeyRunTimeoutTaskPayload

type CancelGetGroupKeyRunTimeoutTaskPayload struct {
	GetGroupKeyRunId string `json:"get_group_key_run_id" validate:"required,uuid"`
}

type CancelStepRunTimeoutTaskMetadata

type CancelStepRunTimeoutTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type CancelStepRunTimeoutTaskPayload

type CancelStepRunTimeoutTaskPayload struct {
	StepRunId string `json:"step_run_id" validate:"required,uuid"`
}

type CancelWorkflowTaskMetadata

type CancelWorkflowTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type CancelWorkflowTaskPayload

type CancelWorkflowTaskPayload struct {
	ScheduledWorkflowId string `json:"scheduled_workflow_id" validate:"required,uuid"`
	TriggerAt           string `json:"trigger_at" validate:"required"`
	WorkflowVersionId   string `json:"workflow_version_id" validate:"required,uuid"`
}

type CheckTenantQueueMetadata

type CheckTenantQueueMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type CheckTenantQueuePayload

type CheckTenantQueuePayload struct {
	IsStepQueued   bool   `json:"is_step_queued"`
	IsSlotReleased bool   `json:"is_slot_released"`
	QueueName      string `json:"queue_name"`
}

type EventTaskMetadata

type EventTaskMetadata struct {
	EventKey string `json:"event_key" validate:"required"`
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type EventTaskPayload

type EventTaskPayload struct {
	EventId                 string `json:"event_id" validate:"required,uuid"`
	EventKey                string `json:"event_key" validate:"required"`
	EventData               string `json:"event_data" validate:"required"`
	EventAdditionalMetadata string `json:"event_additional_metadata"`
}

type GetGroupKeyRunFailedTaskMetadata

type GetGroupKeyRunFailedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type GetGroupKeyRunFailedTaskPayload

type GetGroupKeyRunFailedTaskPayload struct {
	GetGroupKeyRunId string `json:"get_group_key_run_id" validate:"required,uuid"`
	FailedAt         string `json:"failed_at" validate:"required"`
	Error            string `json:"error" validate:"required"`
}

type GetGroupKeyRunFinishedTaskMetadata

type GetGroupKeyRunFinishedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type GetGroupKeyRunFinishedTaskPayload

type GetGroupKeyRunFinishedTaskPayload struct {
	GetGroupKeyRunId string `json:"get_group_key_run_id" validate:"required,uuid"`
	FinishedAt       string `json:"finished_at" validate:"required"`
	GroupKey         string `json:"group_key"`
}

type GetGroupKeyRunStartedTaskMetadata

type GetGroupKeyRunStartedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type GetGroupKeyRunStartedTaskPayload

type GetGroupKeyRunStartedTaskPayload struct {
	GetGroupKeyRunId string `json:"get_group_key_run_id" validate:"required,uuid"`
	StartedAt        string `json:"started_at" validate:"required"`
}

type GetGroupKeyRunTimedOutTaskMetadata

type GetGroupKeyRunTimedOutTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type GetGroupKeyRunTimedOutTaskPayload

type GetGroupKeyRunTimedOutTaskPayload struct {
	GetGroupKeyRunId string `json:"get_group_key_run_id" validate:"required,uuid"`
}

type GroupKeyActionAssignedTaskMetadata

type GroupKeyActionAssignedTaskMetadata struct {
	TenantId     string `json:"tenant_id" validate:"required,uuid"`
	DispatcherId string `json:"dispatcher_id" validate:"required,uuid"`
}

type GroupKeyActionAssignedTaskPayload

type GroupKeyActionAssignedTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	WorkerId      string `json:"worker_id" validate:"required,uuid"`
}

type GroupKeyActionRequeueTaskMetadata

type GroupKeyActionRequeueTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type GroupKeyActionRequeueTaskPayload

type GroupKeyActionRequeueTaskPayload struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type JobRunCancelledTaskMetadata

type JobRunCancelledTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type JobRunCancelledTaskPayload

type JobRunCancelledTaskPayload struct {
	JobRunId string  `json:"job_run_id" validate:"required,uuid"`
	Reason   *string `json:"reason,omitempty"`
}

type JobRunQueuedTaskMetadata

type JobRunQueuedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type JobRunQueuedTaskPayload

type JobRunQueuedTaskPayload struct {
	JobRunId string `json:"job_run_id" validate:"required,uuid"`
}

type JobRunTimedOutTaskMetadata

type JobRunTimedOutTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type JobRunTimedOutTaskPayload

type JobRunTimedOutTaskPayload struct {
	JobRunId string `json:"job_run_id" validate:"required,uuid"`
}

type RemoveTickerTaskMetadata

type RemoveTickerTaskMetadata struct{}

type RemoveTickerTaskPayload

type RemoveTickerTaskPayload struct {
	TickerId string `json:"ticker_id" validate:"required,uuid"`
}

type ReplayWorkflowRunTaskMetadata

type ReplayWorkflowRunTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type ReplayWorkflowRunTaskPayload

type ReplayWorkflowRunTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
}

type ScheduleCronTaskMetadata

type ScheduleCronTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type ScheduleCronTaskPayload

type ScheduleCronTaskPayload struct {
	CronParentId      string `json:"cron_parent_id" validate:"required,uuid"`
	Cron              string `json:"cron" validate:"required"`
	WorkflowVersionId string `json:"workflow_version_id" validate:"required,uuid"`
}

type ScheduleGetGroupKeyRunTimeoutTaskMetadata

type ScheduleGetGroupKeyRunTimeoutTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type ScheduleGetGroupKeyRunTimeoutTaskPayload

type ScheduleGetGroupKeyRunTimeoutTaskPayload struct {
	GetGroupKeyRunId string `json:"get_group_key_run_id" validate:"required,uuid"`
	WorkflowRunId    string `json:"workflow_run_id" validate:"required,uuid"`
	TimeoutAt        string `json:"timeout_at" validate:"required"`
}

type ScheduleStepRunTimeoutTaskMetadata

type ScheduleStepRunTimeoutTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type ScheduleStepRunTimeoutTaskPayload

type ScheduleStepRunTimeoutTaskPayload struct {
	StepRunId string `json:"step_run_id" validate:"required,uuid"`
	JobRunId  string `json:"job_run_id" validate:"required,uuid"`
	TimeoutAt string `json:"timeout_at" validate:"required"`
}

type ScheduleWorkflowTaskMetadata

type ScheduleWorkflowTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type ScheduleWorkflowTaskPayload

type ScheduleWorkflowTaskPayload struct {
	ScheduledWorkflowId string `json:"scheduled_workflow_id" validate:"required,uuid"`
	TriggerAt           string `json:"trigger_at" validate:"required"`
	WorkflowVersionId   string `json:"workflow_version_id" validate:"required,uuid"`
}

type StepRunAssignedBulkTaskMetadata

type StepRunAssignedBulkTaskMetadata struct {
	TenantId     string `json:"tenant_id" validate:"required,uuid"`
	DispatcherId string `json:"dispatcher_id" validate:"required,uuid"`
}

type StepRunAssignedBulkTaskPayload

type StepRunAssignedBulkTaskPayload struct {
	WorkerIdToStepRunIds map[string][]string `json:"worker_id_to_step_run_id" validate:"required"`
}

type StepRunAssignedTaskMetadata

type StepRunAssignedTaskMetadata struct {
	TenantId     string `json:"tenant_id" validate:"required,uuid"`
	DispatcherId string `json:"dispatcher_id" validate:"required,uuid"`
}

type StepRunAssignedTaskPayload

type StepRunAssignedTaskPayload struct {
	StepRunId string `json:"step_run_id" validate:"required,uuid"`
	WorkerId  string `json:"worker_id" validate:"required,uuid"`
}

type StepRunCancelTaskMetadata

type StepRunCancelTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunCancelTaskPayload

type StepRunCancelTaskPayload struct {
	StepRunId           string `json:"step_run_id" validate:"required,uuid"`
	CancelledReason     string `json:"cancelled_reason" validate:"required"`
	StepRetries         *int32 `json:"step_retries,omitempty"`
	RetryCount          *int32 `json:"retry_count,omitempty"`
	PropagateToChildren bool   `json:"propagate_to_children"`
}

type StepRunCancelledTaskMetadata

type StepRunCancelledTaskMetadata struct {
	TenantId     string `json:"tenant_id" validate:"required,uuid"`
	DispatcherId string `json:"dispatcher_id" validate:"required,uuid"`
}

type StepRunCancelledTaskPayload

type StepRunCancelledTaskPayload struct {
	WorkflowRunId   string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId       string `json:"step_run_id" validate:"required,uuid"`
	WorkerId        string `json:"worker_id" validate:"required,uuid"`
	CancelledReason string `json:"cancelled_reason" validate:"required"`
	StepRetries     *int32 `json:"step_retries,omitempty"`
	RetryCount      *int32 `json:"retry_count,omitempty"`
}

type StepRunFailedTaskMetadata

type StepRunFailedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunFailedTaskPayload

type StepRunFailedTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId     string `json:"step_run_id" validate:"required,uuid"`
	FailedAt      string `json:"failed_at" validate:"required"`
	Error         string `json:"error" validate:"required"`
	StepRetries   *int32 `json:"step_retries,omitempty"`
	RetryCount    *int32 `json:"retry_count,omitempty"`
}

type StepRunFinishedTaskMetadata

type StepRunFinishedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunFinishedTaskPayload

type StepRunFinishedTaskPayload struct {
	WorkflowRunId  string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId      string `json:"step_run_id" validate:"required,uuid"`
	FinishedAt     string `json:"finished_at" validate:"required"`
	StepOutputData string `json:"step_output_data"`
	StepRetries    *int32 `json:"step_retries,omitempty"`
	RetryCount     *int32 `json:"retry_count,omitempty"`
}

type StepRunReplayTaskMetadata

type StepRunReplayTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunReplayTaskPayload

type StepRunReplayTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId     string `json:"step_run_id" validate:"required,uuid"`
	JobRunId      string `json:"job_run_id" validate:"required,uuid"`

	// optional - if not provided, the step run will be retried with the same input
	InputData   string `json:"input_data,omitempty"`
	StepRetries *int32 `json:"step_retries,omitempty"`
	RetryCount  *int32 `json:"retry_count,omitempty"`
}

type StepRunRequeueTaskMetadata

type StepRunRequeueTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunRequeueTaskPayload

type StepRunRequeueTaskPayload struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunRetryTaskMetadata

type StepRunRetryTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunRetryTaskPayload

type StepRunRetryTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId     string `json:"step_run_id" validate:"required,uuid"`
	JobRunId      string `json:"job_run_id" validate:"required,uuid"`

	Error *string `json:"error,omitempty"`

	// optional - if not provided, the step run will be retried with the same input
	InputData string `json:"input_data,omitempty"`

	StepRetries *int32 `json:"step_retries,omitempty"`
	RetryCount  *int32 `json:"retry_count,omitempty"`
}

type StepRunStartedTaskMetadata

type StepRunStartedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunStartedTaskPayload

type StepRunStartedTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId     string `json:"step_run_id" validate:"required,uuid"`
	StartedAt     string `json:"started_at" validate:"required"`
	StepRetries   *int32 `json:"step_retries,omitempty"`
	RetryCount    *int32 `json:"retry_count,omitempty"`
}

type StepRunStreamEventTaskMetadata

type StepRunStreamEventTaskMetadata struct {
	TenantId      string `json:"tenant_id" validate:"required,uuid"`
	StreamEventId string `json:"stream_event_id" validate:"required,integer"`
}

type StepRunStreamEventTaskPayload

type StepRunStreamEventTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId     string `json:"step_run_id" validate:"required,uuid"`
	CreatedAt     string `json:"created_at" validate:"required"`
	StreamEventId string `json:"stream_event_id"`
	StepRetries   *int32 `json:"step_retries,omitempty"`
	RetryCount    *int32 `json:"retry_count,omitempty"`
}

type StepRunTaskMetadata

type StepRunTaskMetadata struct {
	TenantId          string `json:"tenant_id" validate:"required,uuid"`
	StepId            string `json:"step_id" validate:"required,uuid"`
	ActionId          string `json:"action_id" validate:"required,actionId"`
	JobId             string `json:"job_id" validate:"required,uuid"`
	JobName           string `json:"job_name" validate:"required,hatchetName"`
	WorkflowVersionId string `json:"workflow_version_id" validate:"required,uuid"`
}

type StepRunTaskPayload

type StepRunTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId     string `json:"step_run_id" validate:"required,uuid"`
	JobRunId      string `json:"job_run_id" validate:"required,uuid"`
	StepRetries   *int32 `json:"step_retries,omitempty"`
	RetryCount    *int32 `json:"retry_count,omitempty"`
}

type StepRunTimedOutTaskMetadata

type StepRunTimedOutTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type StepRunTimedOutTaskPayload

type StepRunTimedOutTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	StepRunId     string `json:"step_run_id" validate:"required,uuid"`
	StepRetries   *int32 `json:"step_retries,omitempty"`
	RetryCount    *int32 `json:"retry_count,omitempty"`
}

type WorkflowRunFailedTask

type WorkflowRunFailedTask struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
	FailedAt      string `json:"failed_at" validate:"required"`
	Reason        string `json:"reason" validate:"required"`
}

type WorkflowRunFailedTaskMetadata

type WorkflowRunFailedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type WorkflowRunFinishedTask

type WorkflowRunFinishedTask struct {
	WorkflowRunId      string                 `json:"workflow_run_id" validate:"required,uuid"`
	Status             string                 `json:"status" validate:"required"`
	AdditionalMetadata map[string]interface{} `json:"additional_metadata"`
}

type WorkflowRunFinishedTaskMetadata

type WorkflowRunFinishedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type WorkflowRunQueuedTaskMetadata

type WorkflowRunQueuedTaskMetadata struct {
	TenantId string `json:"tenant_id" validate:"required,uuid"`
}

type WorkflowRunQueuedTaskPayload

type WorkflowRunQueuedTaskPayload struct {
	WorkflowRunId string `json:"workflow_run_id" validate:"required,uuid"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL