Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rules] Don't attempt to pre-compile disabled rules #4329

Merged
merged 1 commit into from
Jul 24, 2024
Merged

[rules] Don't attempt to pre-compile disabled rules #4329

merged 1 commit into from
Jul 24, 2024

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Jul 24, 2024

Fixes an issue, where an error that compilation failed for disabled rules.

Reported on the community: https://community.openhab.org/t/oh-4-2-snapshot-disabled-rules-failed-to-compile-error-in-opehab-log/157402.
Follow-up for #4289.

Fixes an issue, where an error that compilation failed for disabled rules.
Reported on the community: https://community.openhab.org/t/oh-4-2-snapshot-disabled-rules-failed-to-compile-error-in-opehab-log/157402.
Follow-up for #4289.

Signed-off-by: Florian Hotze <[email protected]>
@florian-h05 florian-h05 requested a review from a team as a code owner July 24, 2024 16:03
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/oh-4-2-snapshot-disabled-rules-failed-to-compile-error-in-opehab-log/157402/5

@rkoshak
Copy link

rkoshak commented Jul 24, 2024

What happens when the rule that was disabled becomes enabled? Does the pre-compile occur or does the rule need to wait until it's triggered to compile?

@florian-h05
Copy link
Contributor Author

florian-h05 commented Jul 24, 2024

The rule is pre-compiled as part of the activation process then:

Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@J-N-K J-N-K added bug An unexpected problem or unintended behavior of the Core regression labels Jul 24, 2024
@J-N-K J-N-K added this to the 4.3 milestone Jul 24, 2024
@J-N-K J-N-K merged commit e157448 into openhab:main Jul 24, 2024
5 checks passed
@florian-h05 florian-h05 deleted the rule-precompile-filter branch July 24, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants