is this not thread safe? <https://github.com/pulum...
# golang
b
is this not thread safe? https://github.com/pulumi/pulumi/blob/master/sdk/go/auto/stack.go#L467. I'm basically trying to delete a lot of stacks at once using goroutines. however when I run this in goroutines I get
Copy code
failed to destroy stack: code: 255
, stdout: 
, stderr: error: invalid character 'r' after top-level value
the character is different, but the error is always the same
This operation is extremely slow, so I was hoping to speed it up overall
i'm wondering If I need to make a
NewLocalWorkspace
per. I was hoping passing copies would suffice
i'm assuming this is actually what is erroring because it doesn't have any
errors.Wrap
https://github.com/pulumi/pulumi/blob/1c80cb534c20f484a137ddf1271bb43ff6cce8fb/sdk/go/auto/stack.go#L835