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

Handle thread interrupts by throwing an InterpretException #870

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

jasmith-hs
Copy link
Contributor

Jinjava will continue to process if a thread is interrupted, which in some cases can lead to it taking quite a long time for execution to stop. Rather than continuing to process through the whole template, if the thread is interrupted, we can throw an InterpretException for each node that is attempted to be rendered after the interrupt has been issued.

@jasmith-hs jasmith-hs merged commit 16684a6 into master Jun 2, 2022
@jasmith-hs jasmith-hs deleted the handle-thread-interrupt branch June 2, 2022 13:33
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

Successfully merging this pull request may close these issues.

4 participants