From 77e38202a1763fcf61fb67664542715c83351bc6 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Tue, 9 Mar 2021 15:11:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20RELEASE:=20v0.19.0=20(#216)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 16 ++++++++++++++++ plumpy/version.py | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00d888ec..a2ffd57d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## v0.19.0 - 2021-03-09 + +- ‼️ DEPRECATE: `Process.done` method: + This method is a duplicate of `Process.has_terminated`, and is not used anywhere in plumpy (or aiida-core). + +- 🐛 FIX: `Task.cancel` should not set state as `EXCEPTED` + `asyncio.CancelledError` are generated when an async task is cancelled. + In python 3.7 this exception class inherits from `Exception`, whereas in python 3.8+ it inherits from `BaseException`. + This meant it python 3.7 it was being caught by `except Exception`, and setting the process state to `EXCEPTED`, + whereas in python 3.8+ it was being re-raised to the caller. + We now ensure in both versions it is re-raised (particularly because aiida-core currently relies on this behaviour). + +- 👌 IMPROVE: Process broadcast subscriber + Filter out `state_changed` broadcasts, and allow these to pass-through without generating a (costly) asynchronous task. + Note this also required an update in the minimal kiwipy version, to `0.7.4` + ## v0.18.6 - 2021-02-24 👌 IMPROVE: Catch state change broadcast timeout diff --git a/plumpy/version.py b/plumpy/version.py index e3b3756e..d2421ed6 100644 --- a/plumpy/version.py +++ b/plumpy/version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- -__version__: str = '0.18.6' +__version__: str = '0.19.0' __all__ = ['__version__']