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

Added checks for scripts stuck in dead loop. #242

Merged
merged 2 commits into from
Dec 2, 2024
Merged

Conversation

MiranDMC
Copy link
Collaborator

@MiranDMC MiranDMC commented Dec 2, 2024

200k was enough for example script, but let's not create something that lags

@MiranDMC MiranDMC requested a review from x87 December 2, 2024 00:05
@@ -43,6 +49,7 @@ class DebugUtils
}

auto config = GetConfigFilename();
configLimitCommand = GetPrivateProfileInt("Limits", "Command", 100000, config.c_str());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100,000 or 200,000?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excluded legacy scripts and restored restriction to 100000.


; limits between 'wait' command in script after which it is considered hanging
[Limits]
command = 200000
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100,000 or 200,000?

@MiranDMC MiranDMC force-pushed the dead_loop_prevention branch from a5fa19c to 510dd73 Compare December 2, 2024 14:55
@MiranDMC MiranDMC requested a review from x87 December 2, 2024 14:55
@MiranDMC MiranDMC merged commit d3137d4 into master Dec 2, 2024
1 check passed
@MiranDMC MiranDMC deleted the dead_loop_prevention branch December 2, 2024 16:36
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.

2 participants