Skip to content

Commit

Permalink
Installer Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MakarovS96 committed Apr 17, 2017
1 parent 8f754e8 commit 0c6d1d5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cls/kutac/monitor/utils/Installer.cls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
set tApplication = ##class(Security.Applications).%OpenId("/csp/"_$ZCONVERT(namespace, "L"),,.tSC)
if $$$ISERR(tSC) {
do $system.Status.DisplayError(tSC)
quit
}
Expand All @@ -135,6 +136,8 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
} catch e {
set tSC = e.AsStatus()
}
do $system.Status.DisplayError(tSC)
quit tSC
]]></Implementation>
</Method>
Expand Down Expand Up @@ -517,15 +520,18 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
do ..WriteLog("Starting Monitor")
set st3 = ..RunningMonitor()
&sql(select Name from %SYS.Task where Name = 'Rebuild SYSMON Cubes')
&sql(select id into :TaskID from %SYS.Task where Name = 'Rebuild SYSMON Cubes')
Do tInstaller.PopNS()
Do tInstaller.PushNS(Namespace)
if +SQLCODE
{
if +SQLCODE {
do ..WriteLog("Creating Task")
Do ##class(kutac.monitor.task.Builder).Setup()
} else {
do ##class(%SYS.Task).Resume(TaskID)
do ##class(%SYS.Task).RunNow(TaskID)
}
Do tInstaller.PopNS()
set st = $$$ADDSC(st2, st3)
Expand Down

0 comments on commit 0c6d1d5

Please sign in to comment.