Dynamic wait time
Dynamic wait time
Use a dynamic time period in a wait node to set a custom wait time with Jinja. This is also called dynamic wait time or custom wait time. Bloomreach calculates the wait time individually for each customer who passes through the wait node.
In the calculation, you can use project metrics, aggregates, trigger event attributes, or any type of personalization.

Spread or throttle campaign sends
A typical use of dynamic wait time is to spread or throttle campaign execution over a time period with the random number generator. For example, to spread the send over about 60 minutes, use:
{{ range(0,60) | random }}
NoteA continuous range creates a separate stream for each value, which uses more processing resources. To reduce the number of streams, batch the wait times into intervals. Learn more in Troubleshoot scenarios.
Round wait times in hours
If you set the wait time in hours, Bloomreach rounds the number down to an integer. For example, a calculated wait of 1.8 hours waits only 1 hour.
To round up, use the Jinja round filter. It accepts the ceil, floor, or common method:
Wait {{ ((event.departure_time - time) / 3600) | round(method="ceil") }} hoursZero or negative wait times
If the wait value is zero or lower, the wait node doesn't wait. The next node runs right away.
Updated about 14 hours ago

