905 Commits

Author SHA1 Message Date
c1c7dd7bea fix: .shutdown() will cleanly stop all threads 2024-04-11 15:03:37 +02:00
e1ad412be7 refactor: make '(un)register_stream' similar to pub/sub registration API
- StreamTopicInfo renamed to StreamSubscriptionInfo
- "cb" field renamed to "cb_ref" (because it is really a weakref)
- removed StreamRegisterMixin class
    - merged with RedisConnector, since there is no other class to mix
      with
- removed need for custom stream listeners
    - differenciation between 'direct' reading and 'bunch' reading is
      made with a specialized StreamSubscriptionInfo object called
      'DirectReadingStreamSubscriptionInfo'
- use a single events queue for all messages
    - all messages callbacks treated the same, by the same thread
- pay attention to registering multiple times a stream to the same
  callback, and prevent newest_only=True streams to also be registered
with the same callback with newest_only=False
2024-04-11 15:03:37 +02:00
dc85f494ed fix: ensure "newest_only" works as expected in test 2024-04-11 15:03:37 +02:00
913dd6dca2 tests: improve test_redis_connector_register_stream_newest_only 2024-04-11 15:03:37 +02:00
e87812a816 feat(connector): add 'unregister' method to cancel subscription to pub/sub 2024-04-11 15:03:37 +02:00
1ddc7eec53 feat(redis connector): add _execute_callback method, to be able to overwrite how callbacks are run 2024-04-11 15:03:37 +02:00
344ef508c0 fix(redis connector): prevent multiple identical connections in 'register' 2024-04-11 15:03:37 +02:00
semantic-release
f58fed2c7d 2.0.3
Automatically generated by python-semantic-release
2024-04-11 12:57:33 +00:00
semantic-release
34989a0b9d 2.0.2
Automatically generated by python-semantic-release
2024-04-11 08:36:42 +00:00
0a9a6747da fix: add raise condition for fetching path from service_config for recovery_device_config dumps 2024-04-11 10:30:39 +02:00
semantic-release
5b42f9cf8d 2.0.1
Automatically generated by python-semantic-release
2024-04-11 06:21:52 +00:00
semantic-release
f23dda606b 2.0.0
Automatically generated by python-semantic-release
2024-04-10 16:03:32 +00:00
405d12e74a refactor!: moved services to bec_server
All services are now in the bec_server package. This is a breaking change as the standalone import of the services will no longer work.
2024-04-10 17:15:48 +02:00
semantic-release
0c441e3a3f 1.24.1
Automatically generated by python-semantic-release
2024-04-10 15:06:09 +00:00
semantic-release
614bc108ac 1.24.0
Automatically generated by python-semantic-release
2024-04-10 13:44:05 +00:00
2317fd3df7 feat: Add check for logger to load correct config, add tests 2024-04-10 15:13:19 +02:00
3fa544bef9 tests: fix logger config in scihub 2024-04-10 13:10:10 +02:00
95ac2055eb refactor: moved messages to pydantic 2024-04-10 10:28:14 +02:00
semantic-release
315c5dd41d 1.23.1
Automatically generated by python-semantic-release
2024-04-09 16:40:51 +00:00
be2330c221 refactor(bec_lib): prevent devices to appear in multiple args 2024-04-08 19:48:08 +02:00
d08526f6e9 refactor: renamed pointID to point_id 2024-04-08 17:07:00 +02:00
semantic-release
77292640b2 1.23.0
Automatically generated by python-semantic-release
2024-04-08 15:05:58 +00:00
9ad68ab69a fix: Fix .deepcopy vs copy for metadata from client 2024-04-08 15:37:19 +02:00
246f271bc9 feat: adapt file writing; log files to common dir and refactoring of filewriter 2024-04-08 14:30:59 +02:00
semantic-release
4eeaddf8d0 1.22.2
Automatically generated by python-semantic-release
2024-04-08 10:11:19 +00:00
semantic-release
4929a0200e 1.22.1
Automatically generated by python-semantic-release
2024-04-04 14:29:50 +00:00
df34f2a480 doc: add docstring and documentation for computedsignal; close #221 #229 #230 2024-03-28 16:18:55 +01:00
semantic-release
01dff469a4 1.22.0
Automatically generated by python-semantic-release
2024-03-28 14:59:57 +00:00
d3f30712f9 feat: 'bec_services_config_file_path' and 'bec_test_config_file_path' fixtures 2024-03-28 13:34:49 +01:00
9b6ac547e7 style: fix pep8 compliance 2024-03-28 13:17:03 +01:00
424377b8f2 build: added isort to setups and pre-commit 2024-03-28 13:17:03 +01:00
2d66967e04 style: apply isort to the whole codebase, clean unused imports 2024-03-28 13:17:03 +01:00
f37109873a fix(tests): ensure all tests do not leak threads 2024-03-28 12:56:24 +01:00
57f4115dfb refactor(CI): end-to-end tests on the same host, with flushing and on multiple hosts, without flushing
Environment variables are used to parametrize dockerfile and scripts
Introduce 'buildah' and 'podman' instead of docker to build and run
images.
Simplification of Dockerfiles and CI scripts.
2024-03-28 12:56:23 +01:00
b24f65a2a1 feat(tests): fixtures for end-2-end tests (available as a pytest plugin) 2024-03-28 10:40:36 +01:00
996809f3a0 refactor: renamed queueID to queue_id 2024-03-22 15:07:19 +01:00
01b4e9cc68 refactor: renamed scanID to scan_id 2024-03-22 15:06:14 +01:00
semantic-release
bc9e2250c1 1.21.1
Automatically generated by python-semantic-release
2024-03-22 09:31:42 +00:00
fd02675256 fix: fixed cleanup execution 2024-03-22 07:28:19 +01:00
semantic-release
990738431e 1.21.0
Automatically generated by python-semantic-release
2024-03-21 09:16:38 +00:00
e281b6aaa1 feat: add "count" keyword arg to stream connector .get_last(), to retrieve last "count" items
count=1 by default
2024-03-21 09:53:42 +01:00
da5df48008 fix: validate endpoint for .get_last (#236), enhance endpoint validation 2024-03-21 09:53:42 +01:00
semantic-release
00c45fbb94 1.20.6
Automatically generated by python-semantic-release
2024-03-20 15:32:13 +00:00
06b4afae4d fix: get username using standard "getpass" module 2024-03-20 16:25:09 +01:00
semantic-release
1555713170 1.20.5
Automatically generated by python-semantic-release
2024-03-20 15:12:16 +00:00
62701077bd test(bec_lib): fixed tests for endpoint structure 2024-03-20 15:49:39 +01:00
eb5774a5da fix(bec_lib): fixed error propagation after client refactoring 2024-03-20 15:15:28 +01:00
semantic-release
f22c53f3f0 1.20.4
Automatically generated by python-semantic-release
2024-03-20 12:42:53 +00:00
semantic-release
f991d871c0 1.20.3
Automatically generated by python-semantic-release
2024-03-20 11:51:52 +00:00
fc8ff9bd75 fix(bec_lib): fixed client shutdown for failed inits 2024-03-20 11:58:15 +01:00