From: Yuri Astrakhan Date: Mon, 24 Sep 2018 00:12:16 +0000 (-0400) Subject: increase lua cpu running limit X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/e0459ea261a2ec1ffdc63ad9cc7570bff4361c4a?hp=5c15439e5e036fcf3cf80ad762e4c5def22717da increase lua cpu running limit Should solve https://lists.openstreetmap.org/pipermail/talk-us/2018-September/018907.html --- 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;