Skip to content

Commit 0c6d1d5

Browse files
committed
Installer Bugfix
1 parent 8f754e8 commit 0c6d1d5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cls/kutac/monitor/utils/Installer.cls.xml

+9-3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
127127
128128
set tApplication = ##class(Security.Applications).%OpenId("/csp/"_$ZCONVERT(namespace, "L"),,.tSC)
129129
if $$$ISERR(tSC) {
130+
do $system.Status.DisplayError(tSC)
130131
quit
131132
}
132133
@@ -135,6 +136,8 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
135136
} catch e {
136137
set tSC = e.AsStatus()
137138
}
139+
140+
do $system.Status.DisplayError(tSC)
138141
quit tSC
139142
]]></Implementation>
140143
</Method>
@@ -517,15 +520,18 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
517520
do ..WriteLog("Starting Monitor")
518521
set st3 = ..RunningMonitor()
519522
520-
&sql(select Name from %SYS.Task where Name = 'Rebuild SYSMON Cubes')
523+
&sql(select id into :TaskID from %SYS.Task where Name = 'Rebuild SYSMON Cubes')
521524
Do tInstaller.PopNS()
522525
523526
Do tInstaller.PushNS(Namespace)
524-
if +SQLCODE
525-
{
527+
if +SQLCODE {
526528
do ..WriteLog("Creating Task")
527529
Do ##class(kutac.monitor.task.Builder).Setup()
530+
} else {
531+
do ##class(%SYS.Task).Resume(TaskID)
532+
do ##class(%SYS.Task).RunNow(TaskID)
528533
}
534+
529535
Do tInstaller.PopNS()
530536
531537
set st = $$$ADDSC(st2, st3)

0 commit comments

Comments
 (0)