Metaflow

Latest version: v2.15.7

Safety actively analyzes 723152 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 30 of 31

2.2.3

The Metaflow 2.2.3 release is a minor patch release.
- [Bug Fixes](2.2.3_bugs)
- Fix 305 : Default 'help' for parameters was not handled properly
- Pin the conda library versions for metaflow default dependencies based on the Python version
- Add conda bin path to the PATH environment variable during Metaflow step execution
- Fix a typo in metaflow/debug.py

<a name="v2.2.3_features"></a> Bug Fixes
Fix 305 : Default 'help' for parameters was not handled properly
Fix the issue where default `help` for parameters was not handled properly. 305 Flow fails because `IncludeFile`'s default value for the `help` argument is None. PR: 318

Pin the conda library versions for metaflow default dependencies based on the Python version.
The previously pinned library version does not work with python 3.8. Now we have two sets of different version combinations which should work for python 2.7, 3.5, 3.6, 3.7, and 3.8. PR: 308

Add conda bin path to the PATH environment variable during Metaflow step execution
Previously the executable installed in conda environment was not visible inside metaflow steps. Fixing this issue by appending conda bin path to the PATH environment variable PR: 307

Fix a typo in metaflow/debug.py
A typo fix. PR: 304

2.2.2

The Metaflow 2.2.2 release is a minor patch release.
- [Bug Fixes](2.2.2_bugs)
- Fix a regression introduced in 2.2.1 related to Conda environments
- Clarify Pandas requirements for Tutorial Episode 04
- Fix an issue with the metadata service

<a name="v2.2.2_bugs"></a> Bug Fixes
Fix a regression with Conda
Metaflow 2.2.1 included a commit which was merged too early and broke the use of Conda. This release reverses this patch.

Clarify Pandas version needed for Episode 04
Recent versions of Pandas are not backward compatible with the one used in the tutorial; a small comment was added to warn of this fact.

Fix an issue with the metadata service
In some cases, the metadata service would not properly create runs or tasks.

PRs 296, 297, 298

2.2.1

The Metaflow 2.2.1 release is a minor patch release.
- [Features](2.2.1_features)
- Add `include` parameter to `merge_artifacts`.
- [Bug Fixes](2.2.1_bugs)
- Fix a regression introduced in 2.1 related to S3 datatools
- Fix an issue where Conda execution would fail if the Conda environment was not writeable
- Fix the behavior of uploading artifacts to the S3 datastore in case of retries

<a name="v2.2.1_features"></a>Features
Add `include` parameter for `merge_artifacts`
You can now specify the artifacts to be merged explicitly by the `merge_artifacts` method as opposed to just specifying the ones that should *not* be merged.

<a name="v2.2.1_bugs"></a> Bug Fixes
Fix a regression with datatools
Fixes the regression described in 285.

Fix an issue with Conda in certain environments
In some cases, Conda is installed system wide and the user cannot write to its installation directory. This was causing issues when trying to use the Conda environment. Fixes 179.

Fix an issue with the S3 datastore in case of retries
Retries were not properly handled when uploading artifacts to the S3 datastore. This fix addresses this issue.


PRs 282, 286, 287, 288, 289, 290, 291

2.2.0

The Metaflow 2.2.0 release is a minor release and introduces [Metaflow's support for R lang](https://docs.metaflow.org/v/r/).
- [Features](2.2.0_features)
- Support for R lang.

<a name="v2.2.0_features"></a> Features
Support for R lang.
This release provides an [idiomatic API to access Metaflow in R lang](https://docs.metaflow.org/v/r/). It piggybacks on the Pythonic implementation as the backend providing most of the functionality previously accessible to the Python community. With this release, R users can structure their code as a metaflow flow. Metaflow will [snapshot the code, data, and dependencies](https://docs.metaflow.org/v/r/metaflow/basics#the-structure-of-metaflow-code) automatically in a content-addressed datastore allowing for [resuming of workflows](https://docs.metaflow.org/v/r/metaflow/debugging#how-to-debug-failed-flows), [reproducing past results, and inspecting anything about the workflow](https://docs.metaflow.org/v/r/metaflow/client) e.g. in a notebook or RStudio IDE. Additionally, without any changes to their workflows, users can now [execute code on AWS Batch and interact with Amazon S3 seamlessly](https://docs.metaflow.org/v/r/metaflow/scaling).

PR 263 and PR 214 .

2.1.1

The Metaflow 2.1.1 release is a minor patch release.
- [Bug Fixes](2.1.1_bugs)
- Handle race condition for `/step` endpoint of metadata service.

<a name="v2.1.1_bugs"></a> Bug Fixes
Handle race condition for `/step` endpoint of metadata service.
The `foreach` step in AWS Step Functions launches multiple AWS Batch tasks, each of which tries to register the step metadata, if it already doesn't exist. This can result in a race condition and cause the task to fail. This patch properly handles the 409 response from the service.

PR 258 & PR 260

2.1.0

The Metaflow 2.1.0 release is a minor release and introduces [Metaflow's integration with AWS Step Functions](https://docs.metaflow.org/going-to-production-with-metaflow/scheduling-metaflow-flows).
- [Features](2.1.0_features)
- Add capability to schedule Metaflow flows with AWS Step Functions.
- [Improvements](2.1.0_improvements)
- Fix log indenting in Metaflow.
- Throw exception properly if fetching code package from Amazon S3 on AWS Batch fails.
- Remove millisecond information from timestamps returned by Metaflow client.
- Handle CloudWatchLogs resource creation delay gracefully.

<a name="v2.1.0_features"></a> Features
Add capability to schedule Metaflow flows with AWS Step Functions.
Netflix uses an [internal DAG scheduler](https://medium.com/NetflixTechBlog/unbundling-data-science-workflows-with-metaflow-and-aws-step-functions-d454780c6280) to orchestrate most machine learning and ETL pipelines in production. Metaflow users at Netflix can seamlessly deploy and schedule their flows to this scheduler. Now, with this release, we are introducing a similar integration with [AWS Step Functions](https://aws.amazon.com/step-functions/) where Metaflow users can [easily deploy & schedule their flows](https://docs.metaflow.org/going-to-production-with-metaflow/scheduling-metaflow-flows) by simply executing

python myflow.py step-functions create

which will create an AWS Step Functions state machine for them. With this feature, Metaflow users can now enjoy all the features of Metaflow along with a highly available, scalable, maintenance-free production scheduler without any changes in their existing code.

We are also introducing a new decorator - [`schedule`](https://docs.metaflow.org/going-to-production-with-metaflow/scheduling-metaflow-flows#scheduling-a-flow), which allows Metaflow users to instrument time-based triggers via [Amazon EventBridge](https://aws.amazon.com/eventbridge/) for their flows deployed on AWS Step Functions.

With this integration, Metaflow users can [inspect](https://docs.metaflow.org/metaflow/client) their flows deployed on AWS Step Functions as before and [debug and reproduce](https://docs.metaflow.org/metaflow/debugging#reproducing-production-issues-locally) results from AWS Step Functions on their local laptop or within a notebook.

[Documentation](https://docs.metaflow.org/going-to-production-with-metaflow/scheduling-metaflow-flows)
[Launch Blog Post](https://medium.com/NetflixTechBlog/unbundling-data-science-workflows-with-metaflow-and-aws-step-functions-d454780c6280)

PR 211 addresses Issue 2 .

<a name="v2.1.0_improvements"></a> Improvements
Fix log indenting in Metaflow.
Metaflow was inadvertently removing leading whitespace from user-visible logs on the console. Now Metaflow presents user-visible logs with the correct formatting.

PR 244 fixed issue 223.

Throw exception properly if fetching code package from Amazon S3 on AWS Batch fails.
Due to malformed permissions, AWS Batch might not be able to fetch the code package from Amazon S3 for user code execution. In such scenarios, it wasn't apparent to the user, where the code package was being pulled from, making triaging any permission issue a bit difficult. Now, the Amazon S3 file location is part of the exception stack trace.

PR 243 fixed issue 232.

Remove millisecond information from timestamps returned by Metaflow client.
Metaflow uses `time` to store the `created_at` and `finished_at` information for the `Run` object returned by Metaflow client. `time` unfortunately does not support the [`%f` directive](https://docs.python.org/3/library/time.html#time.strftime), making it difficult to parse these fields by `datetime` or `time`. Since Metaflow doesn't expose timings at millisecond grain, this PR drops the `%f` directive.

PR 227 fixed issue 224.

Handle CloudWatchLogs resource creation delay gracefully.
When launching jobs on AWS Batch, the CloudWatchLogStream might not be immediately created (and may never be created if say we fail to pull the docker image for any reason whatsoever). Metaflow will now simply retry again next time.

PR 209.

Page 30 of 31

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.