Written by

Question Phillip Wu · Nov 23, 2025

Production Status Details

Hi,

I want to get the status of a Production (Running, Stopped), Queue length, Time the Production started

I did this:

>zn "test"
>set status=##class(Ens.Director).GetProductionSummary(.pinfo)
>write status
1
>zwrite pinfo
pinfo("PKG.FoundationProduction")=$lb("Stopped","","",0)
pinfo("Report.Print.EnsemblePrintService")=$lb("Stopped","2021-02-09 23:15:57.538","2021-02-09 23:16:15.264",0)
pinfo("TC.hmf.Production")=$lb("Stopped","","",0)
pinfo("TC.hmf.System.Production")=$lb("Running","2025-10-30 10:18:24.057","",1)
 

When I run the System Management Portal (Interoperability>Production Configuration)  shows that for the namespace "test" there is this production:

"TC.hmf.System.Production"

The questions I have:

1. I understand that there is only one production per namespace.
What are the remaining lines?
If there is only one production, "TC.hmf.System.Production", how can I get the name of the production programmatically and then print that line only?

2. Method "GetProductionSummary" is not documented
"Running",C,"",1
I understand that it means the production is
Running
Started "Running","2025-10-30 10:18:24.057"
Queue Length 1
Correct?
What is the 3rd parameter? ("")
Thanks for any help

Comments

Timo Lindenschmid · Nov 23, 2025

Hi,

the call to GetProductionInfo() will return all production that were executed in the namespace at some point in time. So you will see the history of the productions previously running in the namespace.

The return values are afaik: Status, StartDateTime, StopDateTime, CurrentDefault

Best Regards

Timo

0