Lock Resources
Lock Resources represent physical or logical devices, such as files, disk drives, tables, and databases. You can define Lock Resources in job definitions, as described in Prerequisites, or with the Lock Resource tool, which enables you monitor jobs that are currently waiting for and utilizing Lock Resources.
There are two types of Lock Resources, as follows:
-
Exclusive Lock Resources: Prevent other jobs from concurrently executing.
-
Shared Lock Resources: Enable other jobs to concurrently execute.
A SMART folder contains three jobs, as follows:
-
Update_USA: Exclusive access is granted to the Update_Finance file Lock Resource.
-
Update_EU:
-
Update_AUS
Update_EU and Update_AUS cannot execute when Update_USA executes.
-
Lock Resources created in the Lock Resources tool must be manually released and deleted after the jobs that require them complete execution. This releases them to jobs that are Waiting for these resources before they can begin execution. Resources that are defined in job definitions are automatically deleted and released.
-
Jobs that are defined as Critical, and that are Waiting an exclusive Lock Resource execute before jobs defined as Priority.
-
If a Critical job is waiting for an exclusive Lock Resource and is defined with a low Priority, this job executes before a non-Critical job defined with a high Priority.
-
If two jobs are waiting for an exclusive Lock Resource and both are defined as Critical, the job with the higher Priority executes first.
The following video describes Lock Resources:
Lock Resources List
The following table describes the Lock Resources list.
Attribute |
Description |
---|---|
Resource Name |
Defines the name of the Lock Resource that is currently held. |
Type |
Defines the type of Lock Resource, as follows:
|
Jobs Using |
Defines the number of jobs currently using the Lock Resource. |
Jobs Requesting |
Defines the number of jobs requesting a Lock Resource. |
Resource Added |
Determines where the Lock Resource is held, as follows:
|
Resource Usage List
The following table describes the Resource Usage list.
Attribute |
Description |
---|---|
Job Name |
Defines the job name. |
Run ID |
Defines the unique code that identifies the job run. |
Resource State |
Determines one of the following job Lock Resource states:
|
File Name |
Defines the filename that the job executes. |