uno.lua: local M = {} local sched=require 'sched' local toribio = require 'toribio' local tasks require 'catalog'.get_catalog('tasks') M.init = function(conf) local taskd = tasks:waitfor('tarea1') sched.run(function() while true do -- hago algo taskd.funcionA() -- o taskd:funcionA() end end) end return M dos.lua local M = {} local sched=require 'sched' local toribio = require 'toribio' local tasks require 'catalog'.get_catalog('tasks') local function funcionA() -- cosas end M.init = function(conf) tasks:register('tarea1', sched.running_task) sched.run(function() while true do -- hago cosas end end) end return M