查找

问题
· 九月 11, 2024

Determine Job/Process State

Hi, I'm working on a large extraction from a database and need to parallelize the processes during the extraction.

Here's what happens:

  1. The user starts the extraction from.
  2. Several jobs are started using the Job <Method> instruction.

At the end, the user expects to find a document containing the results of all the extractions. What I'd like to do is start a new job that checks whether the previously started jobs have finished or are still working and consequently produce the document.

After starting each job, using $ZCHILD instruction I can get the ID of the last started job. I might create a list containing all these IDs, pass it to a method that checks if these jobs are still active and eventually produce the final result. The problem is that I can't figure out how to determine the status of a job given its Job ID.

I may use the retrieved ID to define a Job object using the command:

SET JobObj = ##class(%SYS.ProcessQuery).%OpenId($ZCHILD)

But after that, I can't figure out how to derive the job's status. There is a State property, but I can't understand which value indicates that the job has finished.

Thank you in advance if you can help me!

8 Comments
讨论 (8)4
登录或注册以继续
文章
· 九月 11, 2024 阅读大约需 4 分钟

Construyendo un frontend usando solo Python

El desarrollo frontend puede ser una tarea desalentadora, incluso una pesadilla, para los desarrolladores centrados en el backend. Al principio de mi carrera, la línea entre frontend y backend era difusa, y se esperaba que todos manejaran ambos. El CSS, en particular, siempre fue una lucha constante; sentía que era una misión imposible.

讨论 (0)1
登录或注册以继续
公告
· 九月 11, 2024

VS Code release August 2024 (version 1.93)

 

Visual Studio Code releases new updates every month with new features and bug fixes, and the August 2024 release is now available. 

Version 1.93 includes: 

 

The release also includes contributions from our very own @John Murray through pull requests that address open issues. 

Find out more about these features in the release notes here > https://code.visualstudio.com/updates/v1_93

For those with VS Code, your environment should auto-update. You can manually check for updates by running Help > Check for Updates on Linux and Windows or running Code > Check for Updates on macOS.

If you're thinking about migrating from Studio to VS Code but need some help, take a look at the training courses George James Software offers > https://georgejames.com/migration-from-studio/

讨论 (0)2
登录或注册以继续
问题
· 九月 11, 2024

Hi, Are there some REST API to get the open exchange apps list and app details?

Hi, Are there some REST API to get the open exchange apps list and app details?

2 Comments
讨论 (2)2
登录或注册以继续
摘要
· 九月 11, 2024

InterSystems Community Q&A Monthly Newsletter #40

Top new questions
Can you answer these questions?
#InterSystems IRIS
How to rewrite API URL paths on the fly so that they include the IRIS instance name ?
By Bertrand Cayzac
Hi Experts Can you advise how to setup a nic for VIP and mirroring
By Hunbro
Write to messages.log
By David Marinkovic
Question about PKI Configuration
By Daniel Goerke
Microsoft Entra and IRIS
By Bradley Collins
Wrong data conversion when returning ZTIMEH and ZTIME
By Davi Massaru Teixeira Muta
Get '[Errro] Command "iris start IRIS quietly" exited with status 256' when run https://github.com/intersystems-ib/workshop-fhir-adapter/
By Jack Liu
.NET External language server and output variables (IRISReference)
By John McBride
Embedded python still using old version of python after system upgrade
By David Satorres
How to convert date in "YYYY-MM-DDTHH:MM:SSZ" format to "yyyymmddhhmmss" format?
By Samyuktha Chaudhary
#InterSystems IRIS for Health
#Caché
#Ensemble
#HealthShare
#Other
#40Monthly Q&A fromInterSystems Developers