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

add option to prevent execution of further plugins after first successfull plugin #10

Open
domruf opened this issue Sep 20, 2013 · 1 comment

Comments

@domruf
Copy link

domruf commented Sep 20, 2013

The use case is:
You have multiple plugins. But some of them may be expensive to execute, so you only want to use them as fallback.
Currently all plugins are executed, even though one plugin has already been successful and there is no need to execute (and waste any time) by calling another plugin.

So I think there should be an option the allows me to prevent the execution of further plugins after the first successful plugin.

@tseaver
Copy link
Member

tseaver commented May 31, 2016

I'd be willing to review / merge a PR which implemented such a feature. Off the top of my head, I believe that it should be implemented as a plugin (or more than one) implementing the same interface as the "expensive" ones: it would be configured with a list of the "real" plugins for that interface, and would be the only one registered directly for it.

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

No branches or pull requests

2 participants