Hello everybody We are developing a custom dynamic...
# general
s
Hello everybody We are developing a custom dynamic provider for database management (we want to create groups, grant permissions to them and etc). We did development in python (we’ve created dynamic resource providers, each for each type) and now we are facing an issue that we can not limit number of connection to DB. We have 2 questions: 1. Do we understand correctly that for each instance of resource isolated env. with Dynamic Resource provider is created and that’s why we can not use locks? 2. Is it any way (as we understand -p 1 controls only create process, but read and other operations will not be limited) to limit parallel usage of all operations?
e
1. Do we understand correctly that for each instance of resource isolated env. with Dynamic Resource provider is created and that’s why we can not use locks?
Yes. The way dynamic resources work is the code for the dynamic provider will be reevaluated for each resource operation.
s
@echoing-dinner-19531 is it any way to group them under same env?
e
Not easily. There might be something possible with file locks. Seems like a reasonable request to raise an issue about though.