Documentation
¶
Overview ¶
Adapted from https://github.com/dynajoe/temporal-terraform-demo/blob/main/heartbeat/heartbeat.go.
Index ¶
Constants ¶
View Source
const (
CallActivityName = "session_call"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallActivityInputs ¶ added in v0.14.0
type CallActivityInputs struct { SessionID sdktypes.SessionID CallSpec sdktypes.SessionCallSpec Unique bool }
type CallActivityOutputs ¶ added in v0.14.0
type CallActivityOutputs struct { Result sdktypes.SessionCallAttemptResult // Ask for a manual retry. This is used when executorsForSessions are not // initialized in case the temporal workflow replays AFTER the activity respawns. // The manual retry will instruct the workflow to retry it with the correct // executorsForSessions is initialized. Retry bool }
type CallParams ¶
type CallParams struct { SessionID sdktypes.SessionID CallSpec sdktypes.SessionCallSpec UseTemporalForSessionLogs bool Executors *sdkexecutor.Executors // needed for session specific calls (global modules, script functions). }
type Calls ¶
type Calls interface { StartWorkers(context.Context) error Call(ctx workflow.Context, params *CallParams) (sdktypes.SessionCallAttemptResult, error) }
type Config ¶
type Config struct { // common Worker temporalclient.WorkerConfig `koanf:"worker"` // override above GeneralWorker temporalclient.WorkerConfig `koanf:"general_worker"` UniqueWorker temporalclient.WorkerConfig `koanf:"unique_worker"` Activity temporalclient.ActivityConfig `koanf:"activity"` UniqueActivity temporalclient.ActivityConfig `koanf:"unique_activity"` ActivityHeartbeatInterval time.Duration `koanf:"activity_heartbeat_interval"` }
Click to show internal directories.
Click to hide internal directories.