Documentation
¶
Index ¶
- type Activities
- func (a *Activities) CreateQueueSignal(ctx context.Context, req *CreateQueueSignalRequest) (*app.QueueSignal, error)
- func (a *Activities) HydrateLogStream(ctx context.Context, req *HydrateLogStreamRequest) (*app.LogStream, error)
- func (a *Activities) IncrementQueueSignalExecutionCount(ctx context.Context, req *IncrementQueueSignalExecutionCountRequest) error
- func (a *Activities) ResetStaleInProgressSignals(ctx context.Context, req *ResetStaleInProgressSignalsRequest) error
- func (a *Activities) UpdateQueueSignalRunID(ctx context.Context, req *UpdateQueueSignalRunIDRequest) error
- type CreateQueueSignalRequest
- type HydrateLogStreamRequest
- type IncrementQueueSignalExecutionCountRequest
- type Params
- type ResetStaleInProgressSignalsRequest
- type UpdateQueueSignalRunIDRequest
- type WorkflowCompletionOutcome
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 IncrementQueueSignalExecutionCountRequest ¶ added in v0.19.894
type IncrementQueueSignalExecutionCountRequest struct {
QueueSignalID string `json:"queue_signal_id" validate:"required"`
}
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 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.
Source Files
¶
- activities.go
- check_can_requested.go
- check_restart_hint.go
- create_queue_signal.go
- get_org_by_id.go
- get_queue.go
- get_queue_signal_signal.go
- get_queue_signals.go
- get_sandbox_signal_config.go
- hydrate_log_stream.go
- increment_queue_signal_execution_count.go
- queue_exists.go
- reset_stale_in_progress_signals.go
- update_queue_metadata.go
- update_queue_paused.go
- update_queue_signal_run_id.go
- workflow_completion_outcome.go