Question
· 3 hr ago

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

Discussion (0)1
Log in or sign up to continue