Question Davi Massaru Teixeira Muta · Jun 2

Can't save ClassMethod [ Language = python ]

On save the ClassMethod:

ClassMethod create() [ Language = python ] {

 print("python") 

}

it has received the error :

Compilation started on 06/03/2026 02:15:21 with qualifiers 'cuk /multicompile=0'

 ERROR #7802: Worker job/s '1078:17' unexpectedly shut down in group '#Default:(9119826733444):0'.

 ERROR #7802: Worker job/s '1078:17' unexpectedly shut down in group '#Default:(9119826733444):0'.  

 

with the compileFlags "cuk" the return is:

Compilation started on 06/03/2026 02:19:28 with qualifiers 'cuk' Compiling class dc.RegionClinicalVectorGenerator ERROR #7802: Worker job/s '1160:34' unexpectedly shut down in group '#Default:(6933525859080):0'. ERROR #7812: Work queue unexpectedly removed, shutting down. ERROR #5002: ObjectScript error: THROW WaitForComplete+215^%SYS.WorkQueueMgr *%Exception.StatusException ERROR #7802: Worker job/s '1160:34' unexpectedly shut down in group '#Default:(6933525859080):0'. ERROR #7812: Work queue unexpectedly removed, shutting down. Detected 3 errors during compilation in 1.006s. ERROR #7802: Worker job/s '1160:34' unexpectedly shut down in group '#Default:(6933525859080):0'.

 

My dockerfile is:

ARG IMAGE=intersystemsdc/irishealth-community:latest
FROM $IMAGE

USER root
RUN mkdir -p /opt/irisapp && chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisapp
WORKDIR /opt/irisapp

ENV PIP_TARGET=${ISC_PACKAGE_INSTALLDIR}/mgr/python
COPY --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} iris.script /
COPY --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} ./src src
COPY --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} ./data fhirdata

USER ${ISC_PACKAGE_MGRUSER}
RUN iris start IRIS \
    && iris session IRIS < /iris.script \
    && iris stop IRIS quietly

iris.script:

zn "%SYS"
do ##class(SYS.Container).QuiesceForBundling()
do ##class(Security.Users).UnExpireUserPasswords("*")

zn "HSLIB"
set namespace="FHIRSERVER"
Set appKey = "/fhir/r4"
Set strategyClass = "HS.FHIRServer.Storage.Json.InteractionsStrategy"
Set metadataConfigKey = "HL7v40"
set importdir="/opt/irisapp/src"

//Install a Foundation namespace and change to it
Do ##class(HS.Util.Installer.Foundation).Install(namespace)
zn namespace

// Install elements that are required for a FHIR-enabled namespace
Do ##class(HS.FHIRServer.Installer).InstallNamespace()
Do ##class(HS.FHIRServer.Installer).InstallInstance(appKey, strategyClass, metadataConfigKey,"",0)

// Configure FHIR Service instance to accept unauthenticated requests
set strategy = ##class(HS.FHIRServer.API.InteractionsStrategy).GetStrategyForEndpoint(appKey)
set config = strategy.GetServiceConfigData()
set config.DebugMode = 4
do strategy.SaveServiceConfigData(config)

zw ##class(HS.FHIRServer.Tools.DataLoader).SubmitResourceFiles("/opt/irisapp/fhirdata/", "FHIRServer", appKey)

// Import cls
do $System.OBJ.Import("/opt/irisapp/src","cuk")
Product version: IRIS 2026.1
$ZV: "IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2026.2.0L (Build 197) Thu May 14 2026 01:49

Comments

Dmitrij Vladimirov  Jun 24 to Davi Massaru Teixeira Muta

Downgrading is not a solution to the problem, but only a temporary workaround.

0
Yuri Marx · Jun 14

This error occurs when the Python library or Python itself that you are using is not yet available at the time the ClassMethod attempts compilation. You need to modify your script accordingly.

0
Dmitrij Vladimirov  Jun 14 to Yuri Marx

Hi! I ran into the same problem when version 2026.1 was released. Do you mean that embedded Python needs to be explicitly defined before class compilation? Is there any documentation on this?

0
Dmitrij Vladimirov · Jun 24

I still have this issue with embedded Python in version 2026.1. Has the Docker script been changed or are there any additional instructions that need to be provided to successfully build an app with embedded Python? If a solution already exists, can someone point to the correct documentation page?

The IRIS itself returns little, if anything, about this. Sometimes:

Worker job/s '1078:17' unexpectedly shut down in group 

But more oftet just ERROR

0