Ensure that lua_utils is properly loaded while running system scripts tasks

Fixes #2665
This commit is contained in:
emanuele-f 2019-06-21 10:01:12 +02:00
parent ebb74cd76f
commit eec3c19485

View file

@ -115,6 +115,12 @@ function system_scripts.runTask(task, when)
local periodicity = task_to_periodicity[task]
local default_schema_options = { step = periodicity, is_system_schema = true }
if(task ~= "second") then
-- Do not include this in the second script as it has a performance
-- impact of about 100ms
require("lua_utils")
end
if(periodicity == nil) then
return(false)
end