queue

package
v0.19.771 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadyHandlerName string = "ready"
	ReadyHandlerType        = handlerTypeUpdate
)
View Source
const (
	StatusHandlerName string = "status"
	StatusHandlerType        = handlerTypeUpdate
)
View Source
const EnqueueUpdateName string = "enqueue"
View Source
const RestartUpdateName string = "restart"
View Source
const StopUpdateName string = "stop"

Variables

This section is empty.

Functions

This section is empty.

Types

type EnqueueResponse

type EnqueueResponse struct {
	ID         string
	WorkflowID string
}

type Params

type Params struct {
	fx.In

	Cfg *internal.Config
	V   *validator.Validate
}

type QueueRef

type QueueRef struct {
	WorkflowID string
	ID         string
}

type QueueState

type QueueState struct {
	QueueRefs []QueueRef
}

QueueState is the data that is passed between continue-as-news

type QueueWorkflowRequest

type QueueWorkflowRequest struct {
	QueueID string
	Version string

	State *QueueState
}

type ReadyRequest

type ReadyRequest struct{}

type ReadyResponse

type ReadyResponse struct{}

type RestartRequest

type RestartRequest struct{}

type RestartResponse

type RestartResponse struct{}

type StatusRequest

type StatusRequest struct{}

type StatusResponse

type StatusResponse struct {
	Ready bool

	QueueDepthCount int
	InFlightCount   int
	InFlight        []string
}

type StopRequest

type StopRequest struct{}

type StopResponse

type StopResponse struct{}

type Workflows

type Workflows struct {
	// contains filtered or unexported fields
}

func NewWorkflows

func NewWorkflows(params Params) (*Workflows, error)

func (*Workflows) All

func (q *Workflows) All() []any

func (*Workflows) Queue

@temporal-gen workflow @task-queue "queue" @id-template queue-{{.QueueID}}

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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