activities

package
v0.19.1246 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activities

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

func New

func New(params Params) *Activities

func (*Activities) CreateQueueSignal

func (a *Activities) CreateQueueSignal(ctx context.Context, req *CreateQueueSignalRequest) (*app.QueueSignal, error)

@temporal-gen-v2 activity

func (*Activities) HydrateLogStream added in v0.19.1178

func (a *Activities) HydrateLogStream(ctx context.Context, req *HydrateLogStreamRequest) (*app.LogStream, error)

@temporal-gen-v2 activity @start-to-close-timeout 1m

func (*Activities) IncrementQueueSignalExecutionCount added in v0.19.894

func (a *Activities) IncrementQueueSignalExecutionCount(ctx context.Context, req *IncrementQueueSignalExecutionCountRequest) error

@temporal-gen-v2 activity @start-to-close-timeout 1m @local

func (*Activities) ResetStaleInProgressSignals added in v0.19.947

func (a *Activities) ResetStaleInProgressSignals(ctx context.Context, req *ResetStaleInProgressSignalsRequest) error

@temporal-gen-v2 activity @start-to-close-timeout 1m

func (*Activities) UpdateQueueSignalRunID added in v0.19.911

func (a *Activities) UpdateQueueSignalRunID(ctx context.Context, req *UpdateQueueSignalRunIDRequest) error

@temporal-gen-v2 activity @start-to-close-timeout 10s @local

type CreateQueueSignalRequest

type CreateQueueSignalRequest struct {
	QueueID string        `json:"queue_id" validate:"required"`
	Signal  signal.Signal `json:"signal" validate:"required"`

	// OwnerID and OwnerType are optional — when set they populate the polymorphic
	// owner association on the created QueueSignal so no separate UPDATE is needed.
	OwnerID   string     `json:"owner_id,omitempty"`
	OwnerType string     `json:"owner_type,omitempty"`
	ExpiresAt *time.Time `json:"expires_at,omitempty"`
}

type HydrateLogStreamRequest added in v0.19.1178

type HydrateLogStreamRequest struct {
	LogStreamID string `validate:"required"`
	OrgID       string `validate:"required"`
}

type IncrementQueueSignalExecutionCountRequest added in v0.19.894

type IncrementQueueSignalExecutionCountRequest struct {
	QueueSignalID string `json:"queue_signal_id" validate:"required"`
}

type Params

type Params struct {
	fx.In

	V          *validator.Validate
	DB         *gorm.DB `name:"psql"`
	Cfg        *internal.Config
	AcctClient *account.Client
}

type ResetStaleInProgressSignalsRequest added in v0.19.947

type ResetStaleInProgressSignalsRequest struct {
	QueueID string `json:"queue_id" validate:"required"`
}

type UpdateQueueSignalRunIDRequest added in v0.19.911

type UpdateQueueSignalRunIDRequest struct {
	QueueSignalID string `json:"queue_signal_id" validate:"required"`
	RunID         string `json:"run_id" validate:"required"`
}

type WorkflowCompletionOutcome added in v0.19.1214

type WorkflowCompletionOutcome struct {
	Status                 app.Status `json:"status"`
	StatusHumanDescription string     `json:"status_human_description,omitempty"`
}

WorkflowCompletionOutcome carries the workflow row's domain outcome. Resident flows complete their queue signal independently of the workflow row, so completion side effects (parent callbacks, lifecycle notifications) must be gated on this rather than on the queue signal's transport status.

func (*WorkflowCompletionOutcome) HumanDescription added in v0.19.1214

func (o *WorkflowCompletionOutcome) HumanDescription() string

HumanDescription returns the workflow row's human description, falling back to a generic per-status phrase when the writer left it empty. Several status writers set only Status; without the fallback a parent callback or user notification would carry an empty error message.

Jump to

Keyboard shortcuts

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