developer
developer5mo ago

Windmill Loops vs. Python Loops of wmill.run_async

Hello, Windmill Community Can someone break down for me what would be the difference between looping with Windmill Built-in loops vs this:
def main():
for ...:
wmill.run_function_async(...)
def main():
for ...:
wmill.run_function_async(...)
I'm only able to perceive that the options from below is way faster... but why is that? Are builtin loops synchronous or behaving different in wome way... because, no matter which option, the database will have all the queue info AFAIK Best regards, Erick.
2 Replies
rubenf
rubenf5mo ago
The difference is that this require a driver program to drive it while while loops are pure finite state machines but if you truly do not need to gather the results in the driver program, it doesn't make a big difference
developer
developer5mo ago
Hi, @rubenf Thanks for following up. I'll try to be more verbose about as I've found some issues while trying to pipe 10K objects with standard windmill blocks vs. looping and invoking util scripts/flows from within a node.