mysterious-notebook-34557
02/21/2022, 12:31 PM2.5.0 introduced changes to metaflow_extensions
Is there any kind of documentation for metaflow_extensions and any roadmap for when it will become a public/stable feature?fancy-eve-65019
02/21/2022, 3:42 PMfancy-eve-65019
02/21/2022, 3:43 PMsquare-wire-39606
02/21/2022, 4:13 PMdry-beach-38304
02/21/2022, 6:00 PMdry-beach-38304
02/21/2022, 6:01 PMdry-beach-38304
02/21/2022, 8:46 PMdry-beach-38304
02/22/2022, 6:10 AMmysterious-notebook-34557
02/22/2022, 12:58 PMsetup.py) in MetaflowEnvironment.add_to_package and add files to the job package.
• Being able to install system packages that aren't available on Conda without building/deploying/maintaining a Docker image - this is particularly useful for one-off experiments or during rapid iteration. Our solution to this was to add to MetaflowEnvironment.bootstrap_commands such that scripts with a certain pattern (e.g. `preinstall.sh`/`preinstall-<flow_name>.sh`/`preinstall-<flow name>-<step name>.sh`) are checked for and executed.
• Install libraries before a flow-file is run on a remote compute environment - this is useful to make mixins available without having to symlink or make mixins with dependencies available.
• To have a @pip decorator that respects conda environments during local development - if two steps running locally use the same conda environment but the first one makes installs with pip then the second step will also run with those pip installs (because they aren't captured in the hash of the conda environment). Our solution to this was to use task_pre_step /`task_post_step` / task_post_exception to trigger a steps conda environment to rebuild if it's running locally with @pip.
---
Having changed the structure of our metaflow_extensions
to match the new structure - it now works METAFLOW_DEBUG_EXT=1) I getmetaflow_extensions: WARNING: ignoring all plugins due to error during import: No module named 'click'mysterious-notebook-34557
02/23/2022, 12:46 PM@conda_base and @conda on the same flow.
RuntimeError: Conflicts in metaflow_extensions configuration files:
Packages metaflow-extensions[myorg], and /tmp/tmptsfjou66/metaflow_extensions/myorg define the same configuration module 'metaflow_extensions.myorg.plugins.mfextinit_myorg'
Packages metaflow-extensions[myorg], and /tmp/tmptsfjou66/metaflow_extensions/myorg define the same configuration module 'metaflow_extensions.myorg.toplevel.mfextinit_myorg'
The patch you mentioned - https://github.com/Netflix/metaflow/pull/959 - fixes this issue! 👍dry-beach-38304
02/24/2022, 12:39 AM