31 Commits

Author SHA1 Message Date
c0a0e3e442 feat: add client message handler to send info messages from services to clients; closes 258 2024-05-03 08:32:28 +02:00
af8593794c fix: fixed log message log type 2024-05-01 14:05:40 +02:00
3964870749 fix: logs should be send, not set_and_publish; closes #278 2024-05-01 11:17:47 +02:00
eb9c812529 fix(test_fake_redis): TestMessage fixed to pydantic BaseModel 2024-04-11 15:03:37 +02:00
95ac2055eb refactor: moved messages to pydantic 2024-04-10 10:28:14 +02:00
01b4e9cc68 refactor: renamed scanID to scan_id 2024-03-22 15:06:14 +01:00
62701077bd test(bec_lib): fixed tests for endpoint structure 2024-03-20 15:49:39 +01:00
7ca93d7412 test(bec_lib): added more tests for the redis connector 2024-03-06 10:17:47 +01:00
75cd6512ea fix(bec_lib): added missing unsubscribe from streams 2024-03-06 07:53:06 +01:00
93c8ec66f9 test(bec_lib): minor cleanup 2024-03-06 07:53:06 +01:00
757839534c fix(bec_lib): fixed support for redis streams 2024-03-06 07:53:06 +01:00
b92a79b0c0 refactor!(connector): unify connector/redis_connector in one class 2024-02-26 14:49:43 +01:00
c684a76a5e fix: fixed xread decoding 2024-02-08 23:39:07 +01:00
a7bafa6a0c fix(redis_connector): encode/decode stream data 2024-02-08 23:39:07 +01:00
9a98dbafd4 refactor: cleanup and formatting 2024-02-08 19:26:55 +01:00
f1219ae0f0 fix: fixed xread 2024-02-08 19:26:55 +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
943b10dac0 refactor: move Alarms enum into alarms_handler 2023-11-10 12:13:57 +01: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
d2bd559c3e Remove key/channel postfixes 2023-11-06 12:39:19 +00:00
1a24616cb3 test: added xrange and get_last tests 2023-09-02 20:58:47 +02:00
1137e3188d tests: fixed tests for new stream suffix 2023-08-31 20:53:57 +00:00
e84601f487 feat: added get_last; changed streams to stream suffix 2023-08-31 20:53:57 +00:00
d19fce7d21 fix: fixed xadd for pipelines 2023-08-31 21:54:08 +02:00
2f30c64cd7 test: added redis connector tests 2023-08-10 20:37:03 +00:00
5d892fe345 test: improved tests for redis connector 2023-07-12 17:00:44 +02:00
72e4f943b6 fix: improvements / fixes for redis streams 2023-07-12 15:37:58 +02:00
e8352aa606 feat: added redis stream methods to RedisProducer 2023-07-12 09:30:15 +02:00
a944e43e1a feat: renamed bec_client_lib to bec_lib 2023-06-28 11:04:24 +02:00