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

[Question] From the Host Web API's perspective: Is there a way to limit max execution time of a plugin? #68

Open
sameer-yadav-gep opened this issue May 12, 2023 · 0 comments

Comments

@sameer-yadav-gep
Copy link

I have a scenario where the Base plugin contract can be implemented in multiple ways for different use cases. All the plugin implementations are loaded into the Host app in different Assembly Load Contexts. Since the host app doesn't have control over the code written into the plugins, how can it terminate a plugin execution if it's taking longer than a specific timespan?

I have tried using cancellation token as an argument to the methods specified in the base plugin interface, but it's the responsibility of the implementation to co-operate with the cancellation. Is there a way to enforce termination from the host app/ calling method?

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

1 participant