-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
[automation] Script engines now unloaded if replaced, and closed if AutoCloseable #2681
Conversation
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's nice to be able to close script engine resources without having to restart the runtime. 👍
@jpg0 i mentioned this in openhab/openhab-addons#11830 , but after digging into the error, i think its caused by this change, as mentioned in the other PR, I'm getting this error anytime a rule file is updated
I see this PR is closing the script engine (delegate), but without digging in more, it seems like this is not cleaning it up correctly and the closed script engine is continued to be used? |
@digitaldan I've submitted a (trivial, tbh) PR to remove them here: #2706 My limited testing seemed to confirm that this fixed the issue. |
…penhab#2681) Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
…penhab#2681) Signed-off-by: Jonathan Gilbert <jpg@trillica.com> GitOrigin-RevId: 22c2859
This change:
AutoCloseable
(Required to fix openhab/openhab-addons#11952)
Signed-off-by: Jonathan Gilbert jpg@trillica.com