WindmillWWindmill
Powered by
paalesP
Windmill•5mo ago•
1 reply
paales

How to collect details of steps of for loop.

Given the flow of the for loop. The collection of the iter will result in an array of undefined because the unpublish step returns undefined. However I want to have more control over the collection of the results, I want the details of productSet mutation in this case. The publish/unpubish do not give results they can only fail.

How would one easily built something like that. Having to create a seperate function to merge stuff seems very, uhm empty

//collector.ts
export function main (result: object) { return result }

That can work, but still feels odd that I need an additional function to handle that?
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

Collecting results within for-loop steps
sledgeSsledge / help
10mo ago
Error after Big For-Loop
LükuLLüku / help
7mo ago
For Loop is very long
LoulouLLoulou / help
8mo ago
how do I use the result of the last step of a for loop in the next iteration?
Steven MoonSSteven Moon / help
2y ago