admin管理员组文章数量:1133914
I have a metaflow flowspec with a decorator @some_decorator(parameter="something")
. Is it possible to set things up so that I can set the parameter to the decorator via a command line parameter when I run the flow?
I tried a couple of approaches, but reached dead ends.
metaflow.Parameter
won't work because the parameter only becomes available once we've entered the flow, whereas I need when the decorator is called.- I tried grabbing the parameter with
argparse
. But it turns out the flow file gets executed several times by metaflow, with different arguments, so this did not work.
本文标签: Setting metaflow decorator using command line parameterStack Overflow
版权声明:本文标题:Setting metaflow decorator using command line parameter - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736756965a1951340.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论