Skip to content

Safe re-rendering #13

Description

@sixfeetover

Support safely re-rendering templates, meaning if an exception is thrown during render, don't overwrite the previously rendered template.

Example situation:

  • You have a Rails database.yml file being rendered by Consult.
  • In production, your application boots successfully, rendering database.yml.
  • The next process that boots throws an exception for whatever reason, and the app fails to launch as a result

Instead of the app failing to launch, we should allow for graceful (and reported - meaning, the error makes it to Rollbar or whatever) failure, so the app can boot with the previously rendered template.

Questions:

  1. Should this be configurable on a per-template basis?
  2. Should this be the default behavior?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions