metaflow
metaflow copied to clipboard
Run a flow from another python file
Hi,
I was wondering if it's possible to run a flow from anything other than a script: e.g.
from flow import ParameterFlow
ParameterFlow()
I'm currently getting the following error TypeError: object of type 'NoneType' has no len()
update: ok so the first stage is solved:
from flow import ParameterFlow
ParameterFlow(use_cli=False)
However, I normally give 2 parameters. Anyone know how to set them?
update 2: ok ok I can just set the attributes
But how do I actually RUN the flow? thx
@rvorias We have plans to support programmatic execution of flows. Meanwhile, you can use the Python subprocess module to invoke the flow.
@savingoyal May I ask is there another update on this topic please, it seems the doc link above long time not updated. Thank you!!