rhythmic-dentist-32021
03/16/2023, 10:14 AMoncurrentUpdateError: code: -2
stdout:
stderr: Command failed with exit code 255: pulumi refresh --yes --skip-preview --exec-kind auto.inline --stack pulumi-demo --non-interactive
warning: A new version of Pulumi is available. To upgrade from version '3.55.0' to '3.58.0', run
$ brew upgrade pulumi
or visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
error: the stack is currently locked by 1 lock(s).
Then I have to manually fix this by running pulumi cancel
. Is there a way to handle this in the code that when the pulumi operation fails to gracefully exit the process, so it doesn't stay locked?