How to deal with infinite loops? #90
Replies: 2 comments
-
There is no current mechanism for detecting and aborting infinite loops but you are not the first to have such a requirement. I don't think it would be too difficult to add such a feature.
Option 1 would be the easiest and lowest performance impact but only provides a partial solution since loops could have nested loops or invoke functions that have their own loops inside them, so I think implementing option 2 and 3 is probably the way to go. I will think a bit more about it and do some investigation to see how easy it would be to implement. |
Beta Was this translation helpful? Give feedback.
-
Jactl 2.3.0 which has just been released now has support for infinite loop detection. You can configure a limit for loop iterations or configure and/or configure a timeout. See enhancement #91. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are evaluating Jactl and we appreciate its concept of customisation. We want to use Jactl scripts for the backend of a web application based on Spring Boot.
Currently we are thinking of infinite loops, which obviously will never finish:
As a first approach we tried to abandon long running scripts after a certain timeout. But it seems the script execution cannot be cancelled.
Is there a way to deal with infinite loops introduced accidentally or by malicious users?
Beta Was this translation helpful? Give feedback.
All reactions