Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Move RulesService.java start up to later on (to avoid excessive firing during agent initialisation)

Rich Turnerc1a247847006
diff --git a/manager/src/main/java/org/openremote/manager/rules/RulesService.java b/manager/src/main/java/org/openremote/manager/rules/RulesService.java
index 0ae429fc4..827863df3 100644
--- a/manager/src/main/java/org/openremote/manager/rules/RulesService.java
+++ b/manager/src/main/java/org/openremote/manager/rules/RulesService.java
@@ -99,7 +99,7 @@ import static org.openremote.model.attribute.Attribute.getAddedOrModifiedAttribu
*/
public class RulesService extends RouteBuilder implements ContainerService, AssetUpdateProcessor {
- public static final int PRIORITY = AssetProcessingService.PRIORITY + 100;
+ public static final int PRIORITY = LOW_PRIORITY;
public static final String RULE_EVENT_EXPIRES = "RULE_EVENT_EXPIRES";
public static final String RULE_EVENT_EXPIRES_DEFAULT = "PT1H";
private static final Logger LOG = Logger.getLogger(RulesService.class.getName());