GithubHelp home page GithubHelp logo

Comments (2)

pgavlin avatar pgavlin commented on July 29, 2024

What concrete problem does this end up causing?

The design for this is that if the resource is deleted but has not yet been recreated, then it will be recreated by the next update (assuming it still exists). Once it has been deleted it should no longer be in the state file, so the state transition should be from no resource to a new resource.

from pulumi.

lunaris avatar lunaris commented on July 29, 2024

In some sense this is a subset of --continue-on-error (which we may decide is enough for this use case). Namely:

  • You are performing an update which involves A (delete-before-replace) and B (does not matter)
  • A's delete completes
  • B throws an error
  • The program terminates due to B's error before A's create/replace happens (which would succeed)
  • You have downtime because A was deleted but not replaced

Here, you could either use --continue-on-error (ignore all errors), or argue that we make delete-before-replaces (or perhaps all chains not involved in an error) atomic/complete before the error terminates the program. Hope that makes sense (again, it might be that we don't pursue this and advise use of --continue-on-error, though in my mind there are distinct use cases).

from pulumi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.