Channels-envelope

Latest version: v1.1.0

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

Scan your dependencies

1.1.0

* PubSub-related messages `run_job` method now return values rather than messages to make result storage easier.
* `DeferredJob` now enqueued with fully qualified name so they're traceable.
* `DeferredJob` results returned now stored as RQ result.
* `DeferredJob` can now set RQ defaults message wide via `ttl`, `result_ttl`, `job_timeout`, `failure_ttl`.
* `DeferredJob` async method `post_queue` similar to `pre_queue` but with actual job passed along.
* A new context manager `envelope.testing.MessageCatcher` to help with unit testing.

1.0.4

* Added setting `ENVELOPE_USER_CHANNEL_SEND_SUBSCRIBE` to send a subscribe message to consumer rather than just adding
the client to the users channel.
* `user_logged_out` signal causes a close message to be sent on the user channel, so consumers will be disconnected.
* Loading RQ-job via message class for deferred jobs, to make the code easier to follow + overrides simpler.
* Subscribe-messages have a queue timeout of 20s as default, to avoid subscribe spamming.

1.0.3

* Fixed problem with consumer not catching validation errors
deeper down in message processing.

1.0.2

* Internal messages needed a custom job which wasn't intuitive or easy to debug.
Passing along env as envelope_name instead.

1.0.1

* RecheckSubscriptionsSchema subscriptions changed from set to list to
fix common serialization problems.
* PubSub and context channels accepts arguments `envelope_name` and `layer_name` in case
they need to be overridden. (2)

1.0.0

* Initial release

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.