2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

master: emit warning if datasets will not be stored

This commit is contained in:
Egor Savkin 2023-04-30 15:22:21 +08:00 committed by GitHub
parent a533f2a0cd
commit 5199bea353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: