does anyone have an example of using a regular pyt...
# dev-metaflow
u
does anyone have an example of using a regular python for loop in a metaflow step? (not foreach). Just trying to think through what that would look like in the context of an acyclic graph.
1
d
I am not sure what you are asking but you can have any arbitrary code in your step. The “acyclic graph” property only applies to the steps so while you can’t have a metaflow program that has a loop (ie:
stepA -> stepB -> stepA
), you can most definitely have loops inside
stepA
for example. It will just all execute in a single python process on a single python machine as opposed to each step being its independent process in mf. Does that help?
u
@dry-beach-38304 I think so. I'll try it out and come back if I throw errors 🙂.
👍 1