28 Commits

Author SHA1 Message Date
b92a79b0c0 refactor!(connector): unify connector/redis_connector in one class 2024-02-26 14:49:43 +01:00
3d087ef87d fix(AlarmMessage)!: content member (dict) changed to msg (str)
In practice it was already used as a message.
2024-02-07 12:43:52 +01:00
8bbfd10ca7 refactor(messages)!: messages refactoring, new serialization module
To have a better separation of concern between messages and how they are conveyed in connectors.
BECMessage can be simple dataclasses, leaving the serialization to the connector which transport those.
The serialization module itself can be isolated, and in the case of msgpack it can be extended to
understand how to encode/decode BECMessage, to simplify writing code like with BundleMessage or to
be able to automatically encode numpy or BECStatus objects.
Finally, client objects (producers and consumers) can receive BECMessage objects instead of having
to dump or load themselves.
2024-02-07 12:43:52 +01:00
9acba36aa2 refactor: deprecated devicemanager_client 2023-12-18 16:50:50 +00:00
06f2d781ae refactor: rename module BECMessage -> messages
This should help to avoid confusion between BECMessage module and
BECMessage class located in the same module
2023-11-10 10:28:53 +01:00
524ef24da0 refactor: flatten bec_lib structure 2023-11-10 10:24:33 +01:00
146898ec3f refactor: run isort on all files
$ isort . --profile=black --line-width=100 --multi-line=3 --trailing-comma
2023-11-10 10:22:47 +01:00
bb042716fe fix: removed primary queue from init; cleanup 2023-08-20 16:47:36 +02:00
9019cc2c74 feat: added support for multiple queues; still WIP 2023-08-20 16:47:36 +02:00
a944e43e1a feat: renamed bec_client_lib to bec_lib 2023-06-28 11:04:24 +02:00
00ad593d5c test: more scan server tests 2023-06-22 23:02:41 +02:00
f43d4ebac6 refactor: moved utils into bec_client_lib 2023-06-01 18:01:42 +02:00
deca3d1d77 fix: only pause if queue is not empty 2023-03-10 11:00:25 +01:00
29492366e2 fix: fixed bug related to queue refactoring 2023-02-01 11:02:49 +01:00
49b938d391 refactor: upgraded to black 23.1 2023-02-01 10:28:51 +01:00
f8c0ef620a refactor: minor refactoring for testing 2023-02-01 10:07:24 +01:00
6a2a710273 test: fixed lock acquire 2022-11-27 16:18:00 +01:00
9bfb12fb99 fixed test 2022-11-14 13:04:42 +01:00
853a2700c8 fixed bug that would leave the worker running on abortion 2022-10-12 17:33:53 +02:00
296136b5f4 fixed bug in scan repeat 2022-10-08 13:20:03 +02:00
ea16ae6c8d renamed bkqueue to scan_queue 2022-10-08 13:04:30 +02:00
9fa35950cf cleanup; added tests 2022-10-08 13:00:33 +02:00
551b1d7bd0 fixed test for new abort handling 2022-09-14 16:44:23 +02:00
43681f96ba Revert "Merge branch 'revert-a1ead9b6' into 'master'"
This reverts merge request !40
2022-09-14 10:48:00 +00:00
09bd00a405 Revert "Merge branch 'cleanup_after_stop' into 'master'"
This reverts merge request !39
2022-09-14 10:40:23 +00:00
c8525ae811 tests 2022-09-14 09:56:07 +02:00
6c9dbd41c2 fixed abort test 2022-09-14 09:02:57 +02:00
44ba6a919f code cov 2022-09-10 18:29:52 +02:00