Documentation
¶
Index ¶
Constants ¶
const ( // QuickTimeout is for fast infrastructure operations: validation, no-op // signals, DB-row creation. If these take longer than 5 minutes something // is stuck. QuickTimeout = 5 * time.Minute // DriftDetectionTimeout is for drift-detection signals which are lightweight // but fan out through the webhook/Slack pipeline. DriftDetectionTimeout = 15 * time.Minute // ShortTimeout is for operations expected to complete within minutes: // state generation, lightweight queue signals. ShortTimeout = 30 * time.Minute // HumanGatedTimeout is for operations that require human interaction: // approval workflows, user-initiated stack runs. HumanGatedTimeout = 180 * 24 * time.Hour // FallbackAwaitTimeout caps a wait that has no configured timeout. FallbackAwaitTimeout = 30 * 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func Send ¶
Send signals the target workflow described by ref with the given result. Best-effort: if the target workflow has already terminated, the error is logged but not propagated.
func SignalName ¶
SignalName returns the deterministic signal name for a given id.
Types ¶
type Ref ¶
type Ref struct {
WorkflowID string `json:"workflow_id,omitempty"`
SignalName string `json:"signal_name,omitempty"`
Namespace string `json:"namespace,omitempty"`
}
Ref describes where to send a Temporal signal when an operation completes. It is stored as a JSONB column on QueueSignal and passed through the enqueue → handler → completion chain.
func New ¶
New creates a Ref pointing back to the current workflow with a deterministic signal name derived from id. The caller should register the signal channel before the handler starts to avoid races.
func NewAttempt ¶ added in v0.19.991
NewAttempt scopes the signal name per dispatch to avoid stale completions.
func (Ref) GormDataType ¶
GormDataType tells GORM to use the jsonb PostgreSQL type.
type Refs ¶ added in v0.19.978
type Refs []Ref
Refs is a slice of Ref with JSONB serialization for GORM. It replaces the single Callback field on QueueSignal to support multiple completion callbacks (e.g. from EnsureSignal).
func (Refs) GormDataType ¶ added in v0.19.978
GormDataType tells GORM to use the jsonb PostgreSQL type.