def _create_module_exec(self, module, module_id, module_name, cached): m_exec_id = self.log.id_scope.getNewId(ModuleExec.vtType) module_exec = ModuleExec(id=m_exec_id, machine_id=self.machine.id, module_id=module_id, module_name=module_name, cached=cached, ts_start=vistrails.core.system.current_time(), completed=0) return module_exec