Sdss-clu

Latest version: v2.2.7

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

Scan your dependencies

Page 5 of 8

1.6.2

✨ Improved

* The commander of a command sent to Tron is now `actor.actor` by default, instead of `actor.actor.target_actor`.
* Trying to change the status of a done command will issue a `CluWarning` and return, instead of raising a `RuntimeError`.

🔧 Fixed

* Prompted by [COS-74](https://jira.sdss.org/browse/COS-74), it was possible for a reply from a command with the same MID but different commander to be processed and mark a running command as complete. Now we are checking now only the MID but the commander as well.

1.6.1

🚀 New

* New `Command.child_command()` method that allows to run a child command in the same actor already running `Command`. The practical effect is to run another of the same actor's commands as if it were part of the current `Command`.

✨ Improved

* Allow AMQP clients to listen to their own replies. This allows an actor sending a command to itself to know when the command is done.
* `Command.send_command()` now accepts a `new_command` argument. When `new_command=True`, the new command will receive a new command ID and the commander ID will be the actor running the command (to all effects this is equivalent to `BaseClient.send_command()`). If `new_command=False`, the command ID and commander of the current actor will be used. In this case, and if the target actor is the same actor running the current command, consider using `Command.child_command()` instead.

1.6.0

🚀 New

* Actors can use `set_message_processor()` to set a function that will receive the message dictionary before being output to the users and can make modification on before it's emitted. This is useful, for example, to improve compatibility in actors that can be run as legacy or AMQP actors.

🧱 Support

* Relax sdsstools dependency to `>=0.4.13`. This is desirable since sdsstools is not yet at the 1.0 level and minor version changes block poetry.

1.5.8

🔧 Fixed

* [107](https://github.com/sdss/clu/issues/107) Add an alias `Reply.body` to `Reply.message` to allow backwards compatibility.

1.5.7

✨ Improved

* `Command.replies` is now a list of `Reply` instances with a ``get`` method. Replies are unified for all kinds of clients.

1.5.6

🚀 New

* [106](https://github.com/sdss/clu/issues/106) `Command` now accepts a `time_limit` argument that will mark it as `TIMED_OUT` and done after an interval. `time_limit` can also be passed to `send_command()`.

✨ Improved

* `Command.actor` is always typed as an actor type.

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.