Skip to content

Conversation

@Luccboy
Copy link

@Luccboy Luccboy commented Sep 17, 2025

Hi, we noticed some performance issues when adding global options in our own script:
Specifically, the resource usage (observed by the resource monitor) keeps increasing after every restart of the invoking script.
After some investigation, we found that the global options added by a script are not removed when it is stopped.

This pull request properly removes global options added by scripts when they are stopped.
We had to move the definition of the global variable and related api functions before the removeResourceGlobals function that is called in the onClientResourceStop event handler so we can access the variable.

@Luccboy Luccboy closed this by deleting the head repository Oct 10, 2025
@Luccboy Luccboy reopened this Oct 13, 2025
@Luccboy
Copy link
Author

Luccboy commented Oct 13, 2025

Sorry, I closed it by accident - it is still relevant though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant