trigger :archive do
action :destroy
on_error :error
where expr(
updated_at < ago(30, :minute)
and not is_nil(items) # If I remove this it works
and not exists(items.item.sub_items, updated_at > ago(30, :minute)) # if I remove this it works
# and not exists(items.item.sub_items, true)) if I use this it works
)
scheduler_cron "*/30 * * * *"
end
Given this oban trigger:
When triggered it will error with:
Runtime