[automation] Skip pre-compilation if rule engine not yet started - #5001
Conversation
Closes openhab#4965. As the rule engine needs to be started for the system to reach start level 40 and automation add-ons are not loaded before start level 80, skip pre-compilation if rule engine not yet started as automation add-ons are not available yet. Since the rule engine does not start Signed-off-by: Florian Hotze <dev@florianhotze.com>
|
Just to give me some context, how will the rule compilation be triggerd, as it fails during activation of the rule? |
Exactly, this will trigger compilation of all rules on startup. Normally automation engines are available when the ready marker that registration is done for in the constructor of the RuleEngineIm is added. |
holgerfriedrich
left a comment
There was a problem hiding this comment.
LGTM, thanks for the explanation
|
@florian-h05 I guess it should be backported to 5.0.x and then t can be without any risk? |
|
No need to backport, as the false alarm error logs were already fixed by #4971. |
Closes #4965.
As the rule engine needs to be started for the system to reach start level 40 and automation add-ons are not loaded before start level 80, skip pre-compilation if rule engine not yet started as automation add-ons are not available yet.