From d6e37aa3fe3386b6ca6a21b36365165be113c528 Mon Sep 17 00:00:00 2001 From: Frikky Date: Fri, 17 Nov 2023 01:51:34 +0100 Subject: [PATCH] Removed the startnode changes again. Too many possible failures --- backend/app_sdk/app_base.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py index d3ae8d8c..1d75a027 100755 --- a/backend/app_sdk/app_base.py +++ b/backend/app_sdk/app_base.py @@ -2833,10 +2833,10 @@ class AppBase: # This is to make it possible ot try: if action["id"] == fullexecution["start"]: - pass + return True, "" + # Need to validate if the source is a trigger or not # need to remove branches that are not from trigger to the startnode to make it all work - #if "workflow" in fullexecution["workflow"] and "triggers" in fullexecution["workflow"]: # cnt = 0 # found_branch_indexes = [] @@ -2859,12 +2859,10 @@ class AppBase: # print("Removed %d branches" % len(found_branch_indexes)) #else: # print("[WARNING] No branches or triggers found in fullexecution for startnode") - - #if should_skip: - # return True, "" except Exception as error: self.logger.info(f"[WARNING] Failed checking startnode: {error}") #return True, "" + #return True, "" available_checks = [ "=",