Skip to content

Commit fb7f43b

Browse files
committed
refactor iop code to prevent job registration in production
1 parent 83c07b2 commit fb7f43b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/iop/cls/IOP/Director.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Class IOP.Director [ Inheritance = right, ProcedureBlock, System = 4 ]
99

1010
ClassMethod dispatchCreateBusinessService(pTargetDispatchName As %String) As Ens.BusinessService
1111
{
12+
// Hack to prevent job to be registered in the production
13+
do ##class(Ens.Job).UnRegister(pTargetDispatchName,$JOB)
1214
set tSC = ##class(Ens.Director).CreateBusinessService(pTargetDispatchName,.service)
1315
if $$$ISERR(tSC) throw ##class(%Exception.StatusException).CreateFromStatus(tSC)
1416
quit service

0 commit comments

Comments
 (0)