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

remove reload-plugin #50

Merged
merged 2 commits into from
Feb 28, 2024
Merged

remove reload-plugin #50

merged 2 commits into from
Feb 28, 2024

Conversation

dsavchenko
Copy link
Member

No more need to reload plugin after oda-hub/dispatcher-plugin-nb2workflow#90
(it didn't work anyway due to multiple workers)

@dsavchenko dsavchenko marked this pull request as ready for review February 28, 2024 09:36
@volodymyrss
Copy link
Member

why? how does it reload then?

@dsavchenko
Copy link
Member Author

It doesn't need to be reloaded to be aware of the instruments in KG after introducing NB2WInstrumentFactoryIter.

So the reload endpoint is only used in case of changes in a static configuration file. Moreover, it can really only be used in tests, in the real production deployment there are multiple independent processes started by gunicorn and calling the reload endpoint affected only one of them, this was the reason for the disappearance of the newly added instruments.

Copy link
Member

@volodymyrss volodymyrss left a comment

Choose a reason for hiding this comment

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

ah good

@dsavchenko dsavchenko merged commit a1d1243 into master Feb 28, 2024
3 checks passed
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.

2 participants