This is similar to the question asked here, but it does not have a clear answer:
Get all instances of a paritcular kind of Nestjs service
I'm interested in getting a list of all the instances that extend our "BasePoller" class from the NestJS DI container.
My use case is to trigger gracefully shutdown in parallel in response to SIGTERM rather than relying on the NestJS built-in lifecycle methods, so that I can spin down all the pollers in parallel. More information on that use case here:
Can NestJS lifecycle methods run in parallel rather than in sequence?
I was going to ask as part of that question, but it seemed best as a separate one. Thanks!