bec-widgets 1.24.3__py3-none-any.whl → 1.24.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- CHANGELOG.md +9 -0
- PKG-INFO +1 -1
- bec_widgets/cli/server.py +9 -5
- {bec_widgets-1.24.3.dist-info → bec_widgets-1.24.4.dist-info}/METADATA +1 -1
- {bec_widgets-1.24.3.dist-info → bec_widgets-1.24.4.dist-info}/RECORD +9 -9
- pyproject.toml +1 -1
- {bec_widgets-1.24.3.dist-info → bec_widgets-1.24.4.dist-info}/WHEEL +0 -0
- {bec_widgets-1.24.3.dist-info → bec_widgets-1.24.4.dist-info}/entry_points.txt +0 -0
- {bec_widgets-1.24.3.dist-info → bec_widgets-1.24.4.dist-info}/licenses/LICENSE +0 -0
CHANGELOG.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
3
|
|
4
|
+
## v1.24.4 (2025-03-05)
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
- **cli/server**: Handle RedisError during heartbeat emission to properly close the app even if the
|
9
|
+
Redis connection is lost
|
10
|
+
([`2c506ee`](https://gitlab.psi.ch/bec/bec_widgets/-/commit/2c506ee3c8bcf924c651fddffe4f3f9a2ffd19a4))
|
11
|
+
|
12
|
+
|
4
13
|
## v1.24.3 (2025-03-05)
|
5
14
|
|
6
15
|
### Bug Fixes
|
PKG-INFO
CHANGED
bec_widgets/cli/server.py
CHANGED
@@ -13,6 +13,7 @@ from bec_lib.logger import bec_logger
|
|
13
13
|
from bec_lib.service_config import ServiceConfig
|
14
14
|
from bec_lib.utils.import_utils import lazy_import
|
15
15
|
from qtpy.QtCore import Qt, QTimer
|
16
|
+
from redis.exceptions import RedisError
|
16
17
|
|
17
18
|
from bec_widgets.cli.rpc.rpc_register import RPCRegister
|
18
19
|
from bec_widgets.qt_utils.error_popups import ErrorPopupUtility
|
@@ -142,11 +143,14 @@ class BECWidgetsCLIServer:
|
|
142
143
|
|
143
144
|
def emit_heartbeat(self):
|
144
145
|
logger.trace(f"Emitting heartbeat for {self.gui_id}")
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
146
|
+
try:
|
147
|
+
self.client.connector.set(
|
148
|
+
MessageEndpoints.gui_heartbeat(self.gui_id),
|
149
|
+
messages.StatusMessage(name=self.gui_id, status=self.status, info={}),
|
150
|
+
expire=10,
|
151
|
+
)
|
152
|
+
except RedisError as exc:
|
153
|
+
logger.error(f"Error while emitting heartbeat: {exc}")
|
150
154
|
|
151
155
|
def shutdown(self): # TODO not sure if needed when cleanup is done at level of BECConnector
|
152
156
|
logger.info(f"Shutting down server with gui_id: {self.gui_id}")
|
@@ -2,11 +2,11 @@
|
|
2
2
|
.gitlab-ci.yml,sha256=PuL-FmkTHm7qs467Mh9D8quWcEj4tgEA-UUGDieMuWk,8774
|
3
3
|
.pylintrc,sha256=eeY8YwSI74oFfq6IYIbCqnx3Vk8ZncKaatv96n_Y8Rs,18544
|
4
4
|
.readthedocs.yaml,sha256=aSOc277LqXcsTI6lgvm_JY80lMlr69GbPKgivua2cS0,603
|
5
|
-
CHANGELOG.md,sha256=
|
5
|
+
CHANGELOG.md,sha256=4mohS5Seguygw7m-5LKR-QWuJR_YnBnv7dtr_xFr2ZQ,233281
|
6
6
|
LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
7
|
-
PKG-INFO,sha256=
|
7
|
+
PKG-INFO,sha256=fCeg6AraJXyrQfDgDceYBWQQB6Fy0l4sA2I_aAlxxDY,1173
|
8
8
|
README.md,sha256=KgdKusjlvEvFtdNZCeDMO91y77MWK2iDcYMDziksOr4,2553
|
9
|
-
pyproject.toml,sha256=
|
9
|
+
pyproject.toml,sha256=QVgVGAePd2wv23cax1deak-ajXlYvzL2SIi6Lq3RDDo,2540
|
10
10
|
.git_hooks/pre-commit,sha256=n3RofIZHJl8zfJJIUomcMyYGFi_rwq4CC19z0snz3FI,286
|
11
11
|
.gitlab/issue_templates/bug_report_template.md,sha256=gAuyEwl7XlnebBrkiJ9AqffSNOywmr8vygUFWKTuQeI,386
|
12
12
|
.gitlab/issue_templates/documentation_update_template.md,sha256=FHLdb3TS_D9aL4CYZCjyXSulbaW5mrN2CmwTaeLPbNw,860
|
@@ -27,7 +27,7 @@ bec_widgets/cli/auto_updates.py,sha256=Pj8OHlSlKN3JOAmuuBC5oUMzdfC8TYRY7QKT5BQ2c
|
|
27
27
|
bec_widgets/cli/client.py,sha256=k1dSiZy4CBHb9pgfpV4ygTNaDUeqtWUbigKMxk9gtsY,100272
|
28
28
|
bec_widgets/cli/client_utils.py,sha256=V6qhGRt3Dqj49cA468iYbiDABF8t-VepLOxTke6QsBs,12555
|
29
29
|
bec_widgets/cli/generate_cli.py,sha256=lT-eEXEPpzk9cPrfFVf0U5gxQg7HF2oulxDH16T-SBk,6849
|
30
|
-
bec_widgets/cli/server.py,sha256=
|
30
|
+
bec_widgets/cli/server.py,sha256=XFzLvHDRMuwYh7ciQrIeBQtlpXPDnfIfYim_4Hofmkk,10659
|
31
31
|
bec_widgets/cli/rpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
32
|
bec_widgets/cli/rpc/rpc_base.py,sha256=1qxtzUuxy77Z0jX8my5EmbS3vE-bYlTp5RvZ2zjSDCA,6002
|
33
33
|
bec_widgets/cli/rpc/rpc_register.py,sha256=8s-YJxqYoKc2K7jRLvs0TjW6_OnhaRYCK00RIok_4qE,2252
|
@@ -362,8 +362,8 @@ bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.py,sha256=Z
|
|
362
362
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button.pyproject,sha256=Lbi9zb6HNlIq14k6hlzR-oz6PIFShBuF7QxE6d87d64,34
|
363
363
|
bec_widgets/widgets/utility/visual/dark_mode_button/dark_mode_button_plugin.py,sha256=CzChz2SSETYsR8-36meqWnsXCT-FIy_J_xeU5coWDY8,1350
|
364
364
|
bec_widgets/widgets/utility/visual/dark_mode_button/register_dark_mode_button.py,sha256=rMpZ1CaoucwobgPj1FuKTnt07W82bV1GaSYdoqcdMb8,521
|
365
|
-
bec_widgets-1.24.
|
366
|
-
bec_widgets-1.24.
|
367
|
-
bec_widgets-1.24.
|
368
|
-
bec_widgets-1.24.
|
369
|
-
bec_widgets-1.24.
|
365
|
+
bec_widgets-1.24.4.dist-info/METADATA,sha256=fCeg6AraJXyrQfDgDceYBWQQB6Fy0l4sA2I_aAlxxDY,1173
|
366
|
+
bec_widgets-1.24.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
367
|
+
bec_widgets-1.24.4.dist-info/entry_points.txt,sha256=dItMzmwA1wizJ1Itx15qnfJ0ZzKVYFLVJ1voxT7K7D4,214
|
368
|
+
bec_widgets-1.24.4.dist-info/licenses/LICENSE,sha256=YRKe85CBRyP7UpEAWwU8_qSIyuy5-l_9C-HKg5Qm8MQ,1511
|
369
|
+
bec_widgets-1.24.4.dist-info/RECORD,,
|
pyproject.toml
CHANGED
File without changes
|
File without changes
|
File without changes
|