From 278428df156678446070c9bbcbabb5195bff12fc Mon Sep 17 00:00:00 2001 From: abdollahis2 Date: Thu, 14 Mar 2024 14:50:57 -0400 Subject: [PATCH] added feature to handle timedout merged version --- tr_sys/tr_ars/signals.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tr_sys/tr_ars/signals.py b/tr_sys/tr_ars/signals.py index 990ad771..c30fa2ee 100644 --- a/tr_sys/tr_ars/signals.py +++ b/tr_sys/tr_ars/signals.py @@ -63,6 +63,8 @@ def message_post_save(sender, instance, **kwargs): merge_count += 1 else: orig_count += 1 + if child.status == 'E' and child.actor.agent.name == 'ars-ars-agent': + orig_count -= 1 if finished and merge_count == orig_count: logger.debug('+++ Parent message Done for: %s \n Attempting save' % (str(pmessage.id)))