From 00c1e97ef8b9f57d78038e365aea338cb428aed1 Mon Sep 17 00:00:00 2001 From: Teddy Xiong Date: Fri, 27 Mar 2026 03:30:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20add=20active=20interrupt?= =?UTF-8?q?=20singal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BatchIterator.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BatchIterator.py b/BatchIterator.py index d0bfbf0..c4e96e4 100644 --- a/BatchIterator.py +++ b/BatchIterator.py @@ -218,7 +218,11 @@ class BatchIteratorStringEmitterNode: "mode": (["==", ">="], {"default": "=="}), "key_id": ("STRING", {}), "step": ("INT", { "default": 1, "min": 1 }), - "conditions": ("INT", { "min": 0, "default": 1 }), + "conditions": ("INT", { + "min": 0, + "default": 1, + "tooltip": "if input -999, will raise, it's a active interrupt signal" + }), }, "optional": { "reset": ("BOOLEAN", { "defaultInput": False }) @@ -244,6 +248,8 @@ class BatchIteratorStringEmitterNode: if math.isnan(step) or math.isnan(conditions): raise Exception(f'ERROR: step or conditions data type not int. step: {type(step)}, conditions: {type(conditions)}') + if conditions == -999: + raise Exception(f'ERROR: [AsyncOutput] BatchIterator StringEmitterNode Receive, Received an active interrupt request') if key_id not in ASYNC_OUTPUT_BATCH_ITERATOR_STORAGE_DATA_COUNTER_DICT: ASYNC_OUTPUT_BATCH_ITERATOR_STORAGE_DATA_COUNTER_DICT[key_id] = 0