programmatically in typescript how to handle this.
b
brave-planet-10645
07/15/2025, 5:26 PM
When you say "programatically", do you mean from within a Pulumi program or you want to write a script/app that will just go and clear locks?
n
numerous-restaurant-90807
07/16/2025, 2:25 AM
within pulumi programe
numerous-restaurant-90807
07/16/2025, 7:06 AM
At run time, before I start an operation on a stack, can I clean up locks if present on that particular stack via pulumi cancel in my code and then let stack.up be called ?
b
brave-planet-10645
07/16/2025, 3:21 PM
If you're using our Automation api then yes before you run
stack.up()
you can cancel, but be aware that this may leave the stack in an inconsistent state if a resource operation was pending when the update was canceled.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.