temporal

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package temporal initializes a Temporal worker.

Index

Constants

View Source
const (
	// SearchAttribute is a Temporal search attribute key used
	// by Timpani and the RevChat event dispatcher workflow.
	SearchAttribute = "WaitingForSignals"

	// EventDispatcher is the name and ID of the RevChat event dispatcher workflow.
	EventDispatcher = "event.dispatcher"
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cmd *cli.Command, bi *debug.BuildInfo) error

Run initializes the Temporal worker, and blocks to keep it running. This worker exposes (mostly asynchronous) Temporal workflows, and starts the event dispatcher workflow if it's not already running.

Types

type Config added in v0.3.0

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

func (*Config) EventDispatcherWorkflow added in v0.3.0

func (c *Config) EventDispatcherWorkflow(ctx workflow.Context) error

EventDispatcherWorkflow is an always-running singleton workflow that receives Temporal signals from Timpani and spawns event-specific child workflows to handle them. Most of these child workflows run asynchronously, with the exception of PR creation events.

This workflow enters a brief "lame duck" mode before adhering to the Temporal server's continue-as-new suggestions, or OS signals to stop the worker process, in order to ensure that no events are lost during history resets.

Jump to

Keyboard shortcuts

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