WindmillWWindmill
Powered by
LükuL
Windmill•7mo ago•
6 replies
Lüku

Error after Big For-Loop

Hi everybody!

I have a flow with a For-Loop that works great if the loop gets 50-100 items.
But if I let it run with 2000 iterations that takes more than a half an hour to complete, I get the following error when exiting the loop :

Canceled: Job canceled: Flow 01987a41-3a20-f043-8a10-f54cf4f071d9 was cancelled because it was hanging in between 2 steps.

If I dig deeper, I find the following error:
ERROR src/monitor.rs:619: Error inserting log file: Database(PgDatabaseError { severity: Error, code: "23505", message: "duplicate key value violates unique constraint "log_file_pkey"", detail: Some("Key (hostname, log_ts)=(1bf8a802fb14, 2025-08-05 14:06:00) already exists."), hint: None, position: None, where: None, schema: Some("public"), table: Some("log_file"), column: None, data_type: None, constraint: Some("log_file_pkey"), file: Some("nbtinsert.c"), line: Some(666), routine: Some("_bt_check_unique") })

I ran it multiple times while using the parallel and non-parallel option.

I have no idea where to look next.

Thanks for the help!

Lukas

docker-compose Setup; v1.483.1
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

For Loop is very long
LoulouLLoulou / help
8mo ago
Collecting results within for-loop steps
sledgeSsledge / help
10mo ago
for loop unresponsive in a flow
BravoBBravo / help
15mo ago
Nested for loops?
fr3fouFfr3fou / help
3y ago