Plugin pooling / cancellation
benwiley4000 opened this issue · comments
Ben Wiley commented
A big issue is that when jobs start to pile up we run into problems with stability. This is more an issue when longer plugins are being processed.
We probably want to:
- Return a cancellation function from any request to perform a sample transform, which will kill the iframe but won't raise an error
- Probably three instances of a plugin at any given time.
- By default when using a plugin we will check if we need to kill the previous run, and then try to use an empty plugin instance, or wait for one.
- At idle time we can create whatever instances we need to.à
- test all of this in prod