WorkflowintermediateWorkflows

While Loop with Retry

Poll an external API or file until a success condition is met, with configurable max retries and delay — a production-ready retry pattern for resilient pipelines.

8 nodesExec-Flow · Retry · HTTP · 13 connections

Graph Preview

while-loop-retry.vnwView source

Execution Flow

1

Initialize retry counter and max attempts

2

WhileLoop iterates until break or max reached

3

HTTP check or file check inside loop body

4

If success → BreakLoop to exit

5

Otherwise increment counter and continue

6

Fail path handles max-retry exceeded

Node Breakdown

Init RetryData
WhileLoopLogic
HTTP CheckNetwork
If SuccessLogic
IncrementMath
BreakLoopControl

Integrations

HTTP API

Tags

#retry#while#polling#api#resilience

Source

workflows/while_loop_retry_example.json

General workflow demonstrating core patterns

Related Examples

Browse all →
api_key
model
prompt
AI
generated_text
token_count
Node JSON

LLM Text Generation

beginner

Send a prompt to a Gemini LLM endpoint with configurable system instruction, temperature, and max tokens. Returns generated text, token count, and a success flag.

6 inputs·3 outputs·AI
#ai#llm#gemini
url
method
headers
Network
response_data
status_code
Node JSON

HTTP Request Node

beginner

Async HTTP GET or POST with configurable URL, method, headers (JSON string), and body. Returns parsed response data, status code, raw text, and a success flag.

5 inputs·4 outputs·Network
#http#api#json
Workflow

ForEach Iteration Pattern

beginner

Canonical ForEach usage: pass a list into ForEach, process each item through a sub-chain, collect results with Collect node, and output the aggregated list.

7 nodesAsync DAG
#foreach#iteration#list