Hi everyone! We have defined a custom (step) decor...
# ask-metaflow
s
Hi everyone! We have defined a custom (step) decorator that sets up a step-wide tempdir (among other things), which works fine. Is there a good way to automatically attach this to all steps? Ideally, via the metaflow configuration or, slightly less ideal, via a commandline option when running the flow. Something like the
--with batch
parameter would work, but this only works for default step decorators out of the box. Thanks in advance!
1
s
@shy-refrigerator-15055 is the custom decorator a metaflow decorator or a vanilla python decorator?
if it is the former, then
--with deco_name
would work just well. You can also set
METAFLOW_DECOSPECS=deco_name
as an environment variable as syntactic sugar for
--with
s
Thanks! I'll have a look at turning it into a metaflow decorator.
s
Let us know if you run into any issues or have feedback for the extensions mechanism. Happy to help!