Windows Job Object

Various processes start when you run a Windows Job, and they may run asynchronously. A Windows Job object combines all these processes and sub-processes, and provides several advantages: All sub-processes are included when you measure CPU times. The Windows Job will only end when all sub-processes have ended, and when you cancel a Windows Job, all its sub-processes are also canceled.

You can specify whether a Windows Job should run in a Windows Job object in its host-specific page if this setting should apply to a particular Job. If you define it in the INI file of the Windows agent, this setting is used as the default value, and applies to all Windows Jobs.

[GLOBAL]
;...
useJobObject=1

Example

Activate the Use Windows OS Job Object setting in the host-specific page of a Windows Job. The job report will show the information that a Windows Job Object has been used:

UCMDJP: *******************************************************************

UCMDJP: ** JOB 26181383 (ProcID:0000001416) ENDED AT 20.02.2020/15:03:09 **

UCMDJP: ** ------------------------------------------------------------- **

UCMDJP: **                                  USED:      0.188 CPU         **

UCMDJP: **                                              1154 PAGE FAULTS **

UCMDJP: **                                                 3 PROCESSES   **

UCMDJP: *******************************************************************

If you do not activate this setting, the job report provides different information:

UCMDJP: *******************************************************************
UCMDJP: ** JOB 26181380 (ProcID:0000005796) ENDED AT 20.02.2020/15:02:10 **
UCMDJP: ** ------------------------------------------------------------- **
UCMDJP: **                                  USED:          @ CPU         **
UCMDJP

***************************************************************************

See also: