From e0459ea261a2ec1ffdc63ad9cc7570bff4361c4a Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sun, 23 Sep 2018 20:12:16 -0400 Subject: [PATCH] increase lua cpu running limit Should solve https://lists.openstreetmap.org/pipermail/talk-us/2018-September/018907.html --- .../wiki/templates/default/mw-ext-Scribunto.inc.php.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb index 4c9eb99ad..589817a08 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Scribunto.inc.php.erb @@ -6,9 +6,14 @@ wfLoadExtension('Scribunto'); // Use standalone mode $wgScribuntoDefaultEngine = 'luastandalone'; +// Increase cpu limit (default=7) per https://www.mediawiki.org/wiki/Topic:S9y4s52ue722seam +// Documented in https://www.mediawiki.org/wiki/Extension:Scribunto#LuaStandalone +// Max running time in seconds +$wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 15; + // Set path to lua interpreter $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; - + // Enable syntax highlighting $wgScribuntoUseGeSHi = true; -- 2.39.5