Skip to content

Commit 0b24c71

Browse files
committed
Merged recent changes from 'main' branch
2 parents 141fddf + 120c112 commit 0b24c71

File tree

21 files changed

+225
-88
lines changed

21 files changed

+225
-88
lines changed

.bumpclient.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "0.19.4"
2+
current_version = "0.19.5"
33
commit = true
44
tag = false
55

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumpversion]
2-
current_version = "0.19.4"
2+
current_version = "0.19.5"
33
commit = true
44
tag = true
55

Helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: murfey-services
33
description: Umbrella Helm chart for deploying the servers and daemons needed to enable Murfey to transfer and process data
4-
version: 0.19.4
4+
version: 0.19.5
55
dependencies:
66
- name: murfey-instrument-server-clem
77
- name: murfey-instrument-server-tem
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-instrument-server-clem
33
description: Helm chart for deploying a Murfey instrument server, which executes orders to detect, modify, and transfer files on the instrument PC, and notifies the backend server about transferred files
4-
version: 0.19.4
4+
version: 0.19.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-instrument-server-tem
33
description: Helm chart for deploying a Murfey instrument server, which executes orders to detect, modify, and transfer files on the instrument PC, and notifies the backend server about transferred files
4-
version: 0.19.4
4+
version: 0.19.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-rsync
33
description: Helm chart for deploying an rsync daemon, which is responsible for executing the transfer of files from the client storage directory to the server storage system
4-
version: 0.19.4
4+
version: 0.19.5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: murfey-server
33
description: Helm chart for deploying a Murfey backend server, which is responsible for orchestrating the data transfer and processing workflow between the client PC and the storage system
4-
version: 0.19.4
4+
version: 0.19.5

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires = [
77

88
[project]
99
name = "murfey"
10-
version = "0.19.4"
10+
version = "0.19.5"
1111
description = "Client-Server architecture hauling Cryo-EM data"
1212
readme = "README.md"
1313
keywords = [

src/murfey/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from __future__ import annotations
22

3-
__version__ = "0.19.4"
4-
__supported_client_version__ = "0.19.4"
3+
__version__ = "0.19.5"
4+
__supported_client_version__ = "0.19.5"

src/murfey/client/analyser.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ def _analyse(self):
374374
)
375375
self.post_transfer(transferred_file)
376376
self.queue.task_done()
377+
logger.debug("Analyer thread has stopped analysing incoming files")
377378
self.notify(final=True)
378379

379380
def _xml_file(self, data_file: Path) -> Path:
@@ -407,6 +408,12 @@ def request_stop(self):
407408
self._stopping = True
408409
self._halt_thread = True
409410

411+
def is_safe_to_stop(self):
412+
"""
413+
Checks that the analyser thread is safe to stop
414+
"""
415+
return self._stopping and self._halt_thread and not self.queue.qsize()
416+
410417
def stop(self):
411418
logger.debug("Analyser thread stop requested")
412419
self._stopping = True
@@ -416,5 +423,8 @@ def stop(self):
416423
self.queue.put(None)
417424
self.thread.join()
418425
except Exception as e:
419-
logger.error(f"Exception encountered while stopping analyser: {e}")
426+
logger.error(
427+
f"Exception encountered while stopping Analyser: {e}",
428+
exc_info=True,
429+
)
420430
logger.debug("Analyser thread stop completed")

0 commit comments

Comments
 (0)