Define wait until, require, and retry until logic in workflows.
core.require
action to check conditions.wait_until
condition.
This condition takes a human-readable string (e.g. “tomorrow 2pm”) and waits until that time.
You can specify relative dates, for example:
tomorrow at 2pm
in 2 days
2025-05-01 at 2pm
March 21st 2025 at 10am
dateparser
library to parse the human-readable string.
View dateparser
docs here.core.require
action checks if any or all of multiple conditions are met.
It takes three arguments:
conditions
: A list of expressions that evaluate to booleans e.g. FN.length(ACTIONS.some_action.result.some_array) > 0
raise_error
: If true
, the workflow will fail if the conditions (all or any) are not met.require_all
: If true
, all conditions must be met for the workflow to continue. If false
, only one condition needs to be met.core.require
action fails if the length of the some_array
is greater than 0 and email
is equal to “john@acme.com”.
retry_until
.Specify an output schema for the child workflow to return specific data from the workflow run.
Learn more about output schemas in the child workflows tutorial here.retry_until
condition.
To make use of this condition, define a conditional expression on the same action’s result.
For example, the following execute child workflow action will retry until the child workflow returns an ack
field with a value of true
: