Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload, but reset on fail #931

Open
TheCataliasTNT2k opened this issue Jul 29, 2024 · 0 comments
Open

Reload, but reset on fail #931

TheCataliasTNT2k opened this issue Jul 29, 2024 · 0 comments

Comments

@TheCataliasTNT2k
Copy link

TheCataliasTNT2k commented Jul 29, 2024

Is there a way to reload all templates, which were added though files, but

  • only try to do it, without actually changing anything or
  • try to do it and reset to the previous (working) configuration on failures?

This would allow for (manual) reloads, which do not break the server, if a template is broken.

E.g. a streamer uses (broadcasts) one template in their live stream and edits another, this should not break the stream, if any template gets messed up in the process.

Maybe keep the actual behaviour and add a second function like described above, named "try_reload" or something, which resets on failures.

One way to do it right now, is to create a new Tera instance and replace the old one, if the new one parses correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant