notify

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 8 Imported by: 2 modules, 1 package

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.

README

Notify node

Type: notify
Category: Flow Control

Atomically increments a durable distributed release signal.

Behavior

This node is registered as notify and runs as part of a workflow. Its exact runtime behavior is implemented in node.go; this document summarizes the editor-facing purpose and configuration contract.

Configuration

Field Type Default Description
cacheKeys string Metadata Keys To Cache — Comma-separated message metadata keys copied into the signal cache for released wait messages; nested metadata paths use dots
signal string Release Signal — Fixed text or a mustache template such as {{payload.id}}; the evaluated value is trimmed and becomes the global distributed signal key; keys are case-sensitive and shared across workflows
signalTTLSeconds number 0 Signal TTL Seconds — 0 keeps unconsumed signal counts indefinitely; positive values expire the whole unconsumed count after the latest increment

Implementation

  • node.go contains the executor, validation, schema, and registration.
  • editor.html contains the editor integration.
  • node_test.go, when present, contains behavioral tests.

Documentation

Overview

Package notify contains the distributed notify node: it atomically increments a durable release signal shared with wait nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Signal           string      `json:"signal"`
	CacheKeys        string      `json:"cacheKeys"`
	SignalTTLSeconds interface{} `json:"signalTTLSeconds"`
}

Config holds the notify node configuration.

type Node

type Node struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

Node increments distributed release signals.

func NewNode

func NewNode(node nodestore.NodeInterface, cfg *Config, host nodebase.NodeHost) *Node

NewNode creates a notify node.

func (*Node) Execute

Execute evaluates the signal template, copies the configured metadata keys into the signal cache, and atomically increments the durable signal.

func (*Node) Validate

func (n *Node) Validate() error

Validate fails deployment early when the host offers no durable coordination store. There is deliberately no in-memory fallback.

Jump to

Keyboard shortcuts

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