I am seeing a weird issue after updating packages on my Ubuntu 14.04 box (running OpenRemote 2.6.0 B3).
Drools is running behind schedule, and eventually it seems to give up, missing events completely.
The log shows that the timers start out working correctly, but slowly lag further and further behind. Restarting OpenRemote does not fix the issue, only a full computer reboot mitigates the problem (for a while). For clarity, the Nissan Leaf command is a simple python script.
Here are the relevant rules:
rule “Turn Fan on the Hour Every Hour”
timer (cron: 00 00 * * * ? ) when eval (true) then
execute.command(“Node 5 (ON)”);
end
rule “Turn Fan off after 10 Minutes of Runtime”
timer (cron: 00 10 * * * ? ) when eval (true) then
execute.command(“Node 5 (OFF)”);
end
rule “Ping the Nissan Leaf for an update every 5 minutes”
timer (cron: 0 0/5 * * * ? ) when eval (true) then
execute.command(“Update Nissan Leaf Info”);
end
``
Here is part of the log:
DEBUG 2018-02-12 20:58:12,727 (Drools): rule “Ping the Nissan Leaf for an update every 5 minutes” // (package org.openremote.controller.model.event)
Declarations
LHS objects(antecedents)
Class: “InitialFactImpl”
Fields:
org.drools.core.reteoo.InitialFactImpl@4dde85f0
DEBUG 2018-02-12 21:05:22,303 (Drools): rule “Turn Fan on the Hour Every Hour” // (package org.openremote.controller.model.event)
Declarations
LHS objects(antecedents)
Class: “InitialFactImpl”
Fields:
org.drools.core.reteoo.InitialFactImpl@4dde85f0
DEBUG 2018-02-12 21:05:22,304 (Drools): rule “Ping the Nissan Leaf for an update every 5 minutes” // (package org.openremote.controller.model.event)
Declarations
LHS objects(antecedents)
Class: “InitialFactImpl”
Fields:
org.drools.core.reteoo.InitialFactImpl@4dde85f0
DEBUG 2018-02-12 21:08:19,931 (Drools): rule “Ping the Nissan Leaf for an update every 5 minutes” // (package org.openremote.controller.model.event)
Declarations
LHS objects(antecedents)
Class: "InitialFactImpl"
Fields:
org.drools.core.reteoo.InitialFactImpl@4dde85f0
DEBUG 2018-02-12 21:09:07,246 (Drools): rule “Ping the Nissan Leaf for an update every 5 minutes” // (package org.openremote.controller.model.event)
Declarations
LHS objects(antecedents)
Class: "InitialFactImpl"
Fields:
org.drools.core.reteoo.InitialFactImpl@4dde85f0
``