Foster
Foster

Reputation: 23

Setting metaflow decorator using command line parameter

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.

Upvotes: 0

Views: 35

Answers (1)

Savin
Savin

Reputation: 191

Yes, you can rely on config support within Metaflow to pass these values from the command line. Here are the official docs for this - https://docs.metaflow.org/metaflow/configuring-flows/basic-configuration#defining-config-files

Upvotes: 1

Related Questions