# HG changeset patch # User Alain Mazy # Date 1764751040 -3600 # Node ID 31bed02844af76266becef2cc1e52b8ad1af1f68 # Parent 30d87c98a58cb19c2fbd1813322aab9fb532a7cf thread name in python sample diff -r 30d87c98a58c -r 31bed02844af Sphinx/source/plugins/python/queues-and-kvs.py --- a/Sphinx/source/plugins/python/queues-and-kvs.py Wed Dec 03 09:37:07 2025 +0100 +++ b/Sphinx/source/plugins/python/queues-and-kvs.py Wed Dec 03 09:37:20 2025 +0100 @@ -10,6 +10,8 @@ def ProcessQueueMessages(): global is_worker_running + orthanc.SetCurrentThreadName("QUEUE-PROC") + while is_worker_running: # get messages from the queue named "instances-to-process" that is stored in Orthanc DB. # Get the message from the FRONT for FIFO and from the BACK for a LIFO