trigger

package
v0.110.14-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTriggerSlots = errors.New("no trigger slots available")

Functions

This section is empty.

Types

type TriggerWriter

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

func NewTriggerWriter

func NewTriggerWriter(mq msgqueue.MessageQueue, pubsub msgqueue.PubSub, repo v1.Repository, l *zerolog.Logger, pubBuffer *msgqueue.MQPubBuffer, slots int, promGate *prometheus.Gate) *TriggerWriter

NewTriggerWriter creates a new TriggerWriter with the given number of slots for concurrency control. If the number of slots is 0, there is no limit to concurrency.

func (*TriggerWriter) SignalCELEvaluationFailures added in v0.95.0

func (tw *TriggerWriter) SignalCELEvaluationFailures(ctx context.Context, tenantId uuid.UUID, failures []v1.CELEvaluationFailure) error

func (*TriggerWriter) SignalCreated added in v0.80.0

func (tw *TriggerWriter) SignalCreated(ctx context.Context, tenantId uuid.UUID, tasks []*v1.V1TaskWithPayload, dags []*v1.DAGWithData) error

func (*TriggerWriter) TriggerFromEvents

func (tw *TriggerWriter) TriggerFromEvents(ctx context.Context, tenantId uuid.UUID, eventIdToOpts map[uuid.UUID]v1.EventTriggerOpts) error

func (*TriggerWriter) TriggerFromWorkflowNames

func (tw *TriggerWriter) TriggerFromWorkflowNames(ctx context.Context, tenantId uuid.UUID, opts []*v1.WorkflowNameTriggerOpts) ([]v1.IdempotencyCollision, error)

func (*TriggerWriter) TriggerFromWorkflowNamesWaiting added in v0.108.2

func (tw *TriggerWriter) TriggerFromWorkflowNamesWaiting(ctx context.Context, tenantId uuid.UUID, opts []*v1.WorkflowNameTriggerOpts) ([]v1.IdempotencyCollision, error)

TriggerFromWorkflowNamesWaiting acquires a trigger slot, blocking until one is free or ctx is done. Use this when the caller cannot fall back to the durable queue (idempotent batches).

Jump to

Keyboard shortcuts

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