Configure Payload Instance Conditions¶
You can define the end of a journey's payload instances by duration or batch pipeline run behavior.
Summary of behaviors¶
Start an instance¶
A payload instance starts when payload instances are tracked in the journey Settings and a new payload value is included in any of the following events.
- A Metric Log, Message Log, or Test Outcomes event received for a server, streaming pipeline, or dataset component.
- A Dataset Operation event received for a dataset component.
- The first event (Run Status, Metric Log, Message Log, or Test Outcomes) received for a batch pipeline run.
See Payload Instances Overview for more information on batch pipeline run behavior.
Note
Start conditions apply by default and do not need to be configured.
End an active instance¶
An end condition must be configured for payload instances. Payload instances can end:
- On a schedule.
- When a specified batch pipeline component receives a run end event (a Run Status event with status of "completed," "completed with warnings," or "failed") for a run associated with the payload.
- When a specified dataset component receives a Dataset Operation
writeevent and the event includes the payload value.
How to¶
To set payload instance conditions for a journey that's already been created, follow the steps below. Note that payload instance conditions can also be set during journey creation.
- Select Journeys from the menu > choose a journey from the list > select the Settings tab.
- Click Edit payload instance conditions.
- Check Track payloads as separate instances.
- Under End a payload instance, select Add Condition and configure at least one end condition.
-
Optional. Create a batch pipeline run end condition.
- Select When run ends for.
- Select a batch pipeline component included in this journey.
When no batch pipeline components are in the journey, the drop-down reads N/A (not applicable).
-
Optional. Create a schedule end condition.
- Select On schedule.
- Click in the field.
-
Select the timeframe: Every x hours, Every x days, On certain days, or Custom.
Tip
Use Custom cron expressions in your expectations. See Cron Expressions in Observability for what's supported.
-
Complete the schedule details.
- Verify that the Next Time calculated by the system aligns with your expectations. Make adjustments if needed.
- Click Apply.
-
Optional. Create a dataset end condition.
- Select When write operation occurs for.
- Select a dataset component included in this journey.
-
When done, click Save.
At any point, click Cancel to end without saving.
How to remove an end condition¶
From the journey details Settings tab, click Edit payload instance conditions.
For the end condition you want to remove, click Delete. Then, click Save.