Is it possible to loop through a dyamically create...
# ask-community
j
Is it possible to loop through a dyamically created list and do a series of tasks on each item in the list? Like: for item in list: task1, task2, task3?
k
Hey @Jelle Vegter, so if the list is known ahead of time, you can map and chain the map operations. But if the list is not known ahead of time, you need to do something like task looping, but it wouldn’t be like task1, task2, or task3. You’d have to call these tasks inside the loop, which means you’d have to do
task1.run()
,
task2.run()
and you wont get stuff like retires/observability.
j
Thats what I concluded, thanks!
👍 1