Is it possible that promises are being leaked in t...
# general
t
Is it possible that promises are being leaked in the background that I don't get told about until it reaches a threshold? I have a setup thats working currently, and I am trying to add a new resource `aws.rds.SubnetGroup`; the preview is absolutely fine; unless I add a
parent: network
to it also, in which case it then tells me that i'm leaking ~ 1200 promises
e
Don't do "dependsOn" and "parent", I'm pretty sure that causes issues in most (all?) the SDKs.
t
How come? I am doing
parent
to structure the tree and
dependsOn
is being used to ensure the order is correct
Is there any documentation on the issues this can cause?
e
Because parent'ing is also used for dependencies (the expectation is that a parent waits for all it's children) so parent and dependsOn causes loops in the dependency tree.
m
Is there any documentation on the issues this can cause?
The docs mention this leading to undefined behavior here: https://www.pulumi.com/docs/concepts/options/parent/
t
Ah okay so is the recommendation to only use depends on?
e
Yes, parent is really only intended for component resources.