Skip to content

Commit 6be1ec6

Browse files
committed
fix: changed base_agent_mixin to allow empty inputs so that the semaphore signals are sent at init for agent plugins in case of pairing with container plugin instance
1 parent d7f5104 commit 6be1ec6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

extensions/business/mixins/base_agent_mixin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
BASE_AGENT_MIXIN_CONFIG = {
22
'OBJECT_TYPE': [],
3-
"ALLOW_EMPTY_INPUTS": False, # if this is set to true the on-idle will be triggered continuously the process
3+
"ALLOW_EMPTY_INPUTS": True, # This is done in order to trigger _semaphore_maybe_auto_signal and
4+
# _semaphore_maybe_auto_send when this runs alongside a container plugin that is waiting for semaphore.
45
"DEBUG_LOGGING_ENABLED": True,
56

67
"VALIDATION_RULES": {
@@ -71,7 +72,8 @@ def handle_inferences(self, inferences, data=None):
7172
model_name = inferences[0].get('MODEL_NAME', None) if len(inferences) > 0 else None
7273
cnt_initial_inferences = len(inferences)
7374
inferences, valid_idxs = self.filter_valid_inferences(inferences, return_idxs=True)
74-
self.Pd(f"Filtered {cnt_initial_inferences} inferences to {len(inferences)} valid inferences.")
75+
if cnt_initial_inferences > 0:
76+
self.Pd(f"Filtered {cnt_initial_inferences} inferences to {len(inferences)} valid inferences.")
7577
filtered_data = None
7678
if data is not None:
7779
filtered_data = [

ver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VER__ = '2.10.98'
1+
__VER__ = '2.10.99'

0 commit comments

Comments
 (0)