The Metaflow 2.4.3 release is a patch release
- [Bug Fixes](v2.4.2_bugs)
- [Fix a race condition when accessing artifacts of a running task](789)
- [Fix an issue when using a combination of `catch` and `retry` decorators](776)
- [Upgrade Pandas in tutorials](707)
- Miscellaneous
- The code base has now been formatted with Black. PRs will automatically be formatted when submitted. If submitting PRs, you can also format your PRs using black (default options) to avoid a reformatting PR.
<a name="v2.4.3_bugs"></a> Bug Fixes
<a name="789"></a>Fix a race condition when accessing artifacts of a running task (789)
When accessing artifacts of a running task using `Task(...).artifacts`, a race condition existed and the call could return a difficult to understand error message. This release fixes this issue and making this call will either return the artifacts present or no artifacts at all if none are present yet.
<a name="776"></a>Fix an issue when using a combination of `catch` and `retry` decorators (776)
A step as below:
retry(times=2)
catch(var='exception')
step
def my_step(self):
raise ValueError()
would not retry 2 times as expected but instead the exception would be caught the first time around. This release fixes this issue and the step will now execute a total of 3 times and the exception will be caught on the third time.
<a name="707"></a>Upgrade Pandas in tutorials (707)
On MacOS Big Sur, certain tutorials were broken due to using an older version of Pandas. This updates the tutorials to use 1.3.3 to solve this issue.