Documentation
¶
Index ¶
Constants ¶
const ( EnqueueSourceChannel = "channel" EnqueueSourceAwait = "await" EnqueueSourceSweep = "sweep" )
EnqueueSource identifies how a signal was enqueued.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activities ¶ added in v0.19.919
type Activities struct {
// contains filtered or unexported fields
}
Activities wraps the Enqueuer methods that should be registered as Temporal activities. This avoids exposing non-activity methods (e.g. Send) which would cause Temporal to panic on registration.
func NewActivities ¶ added in v0.19.919
func NewActivities(e *Enqueuer) *Activities
func (*Activities) Sweep ¶ added in v0.19.919
func (a *Activities) Sweep(ctx context.Context, _ *SweepRequest) error
@temporal-gen-v2 activity @start-to-close-timeout 2m
type Enqueuer ¶
type Enqueuer struct {
// contains filtered or unexported fields
}
Enqueuer processes signal enqueue requests in the background. It receives queue signal IDs via a channel and performs the UpdateWithStart call to enqueue them into their respective queue workflows.
func (*Enqueuer) EnqueueInline ¶ added in v0.19.919
EnqueueInline synchronously enqueues a queue signal by performing the UpdateWithStart call inline with the caller. It records enqueue timing metadata (including the enqueue source) and marks the signal as enqueued on success.
type SweepRequest ¶ added in v0.19.919
type SweepRequest struct{}
type SweepWorkflowRequest ¶ added in v0.19.919
type SweepWorkflowRequest struct{}
type Workflows ¶ added in v0.19.919
type Workflows struct{}
func NewWorkflows ¶ added in v0.19.919
func NewWorkflows() *Workflows
func (*Workflows) EnqueuerSweep ¶ added in v0.19.919
func (w *Workflows) EnqueuerSweep(ctx workflow.Context, req SweepWorkflowRequest) error
@temporal-gen-v2 workflow @task-queue "queue" @id-template enqueuer-sweep