:wave: hi folks…..I have some `--with` parameters ...
# ask-metaflow
s
👋 hi folks…..I have some
--with
parameters that I always want added when I call
run
to a flow….is there a recommended way to go about this? I potentially could modify
sys.argv
before the flow but that seems like it could have unexpected consequences.
1
Example:
Copy code
if __name__ == "__main__":
  # add in my always expected `with` params
  MyJob()
v
you can set an environment variable
METAFLOW_DECOSPECS
which works as
--with
behind the scenes. E.g.
Copy code
METAFLOW_DECOSPECS=retry:times=0
is equivalent to
Copy code
--with retry:times=0
which is equivalent to
Copy code
@retry(times=0)
in the code
🙌 1