Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/courier/models/journey_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module JourneyNode
# Collect events arriving at the node into a single batch and fire one downstream step with the aggregated payload. The first event into a batch owns the run; later contributing events terminate at the batch step. The batch releases when any of `max_items` is reached, a quiet window of `wait_period` elapses, or the `max_wait_period` ceiling hits.
variant -> { Courier::JourneyNode::JourneyBatchNode }

# Add the current event to a digest keyed by the given subscription topic. The digest accumulates events and releases them on the schedule configured for the topic, using the notification template configured on that topic.
# Add the current event to a digest keyed by the given subscription topic. The digest accumulates events and releases them on the schedule configured for the topic, using the notification template configured on that topic. This node's `type` value is `add-to-digest`.
#
# **The topic must have a template configured.** If the topic has no template when the first event reaches this node, the journey run fails immediately: the run is marked `ERROR`, no digest instance is created, and the journey does not continue past this node. Configure the topic's template before using the topic in a journey.
#
Expand Down Expand Up @@ -244,7 +244,8 @@ class JourneyAddToDigestNode < Courier::Internal::Type::BaseModel
#
# Add the current event to a digest keyed by the given subscription topic. The
# digest accumulates events and releases them on the schedule configured for the
# topic, using the notification template configured on that topic.
# topic, using the notification template configured on that topic. This node's
# `type` value is `add-to-digest`.
#
# **The topic must have a template configured.** If the topic has no template when
# the first event reaches this node, the journey run fails immediately: the run is
Expand Down
3 changes: 2 additions & 1 deletion rbi/courier/models/journey_node.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ module Courier

# Add the current event to a digest keyed by the given subscription topic. The
# digest accumulates events and releases them on the schedule configured for the
# topic, using the notification template configured on that topic.
# topic, using the notification template configured on that topic. This node's
# `type` value is `add-to-digest`.
#
# **The topic must have a template configured.** If the topic has no template when
# the first event reaches this node, the journey run fails immediately: the run is
Expand Down