From 5199bea353064c2b7ee8f14db98c9ca264629bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AB=E7=84=9A=20=E5=AF=8C=E8=89=AF?= Date: Sun, 30 Apr 2023 15:22:21 +0800 Subject: [PATCH] master: emit warning if datasets will not be stored --- artiq/master/worker_db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/master/worker_db.py b/artiq/master/worker_db.py index fccdc1c11..015a125fa 100644 --- a/artiq/master/worker_db.py +++ b/artiq/master/worker_db.py @@ -119,6 +119,9 @@ class DatasetManager: if persist: broadcast = True + if not (broadcast or archive): + logger.warning(f"Dataset '{key}' will not be stored. Both 'broadcast' and 'archive' are set to False.") + if broadcast: self._broadcaster[key] = persist, value elif key in self._broadcaster.raw_view: