Config
Specification for the 'config' section of grace.yml.
The config
block in your grace.yml
file is used to define global settings that apply to the entire workflow execution. These settings control how Grace interacts with your z/OS environment, manages concurrent operations, and handles default behaviors for certain job types.
Required fields
profile
- Type:
string
- Description: Specifies the name of the Zowe profile that Grace will use for all z/OS interactions. This profile must be pre-configured in your Zowe environment. Grace relies on this profile for authentication and connection details to your z/OSMF instance.
Learn how to set up Zowe CLI profiles in the Configuration guide.
Optional fields
concurrency
- Type:
integer
- Default: 5
- Description: The maximum number of Grace job steps that will run concurrently. This acts as a global semaphore for the workflow's active job executions, helping to manage local and remote resource utilization. For example, if set to
3
, no more than three jobs will be in their execution stage at any given moment.
defaults
- Type:
Object
- Description: This block allows you to define default parameters for common toolchains like compilers and linkers. These defaults will be used by jobs of the corresponding types unless explicitly overridden within the job's own definition (using the overrides block in a job).
- Sub-fields:
compiler
(Object) : Default settings for jobs withtype: compile
pgm
(String) : The default program name for the compiler (e.g.IGYCRCTL
for IBM Enterprise COBOL).parms
(String, Optional) : Default compiler parameters.steplib
(String, Optional) : The defaultSTEPLIB
dataset (or a colon-separated list of datasets) for the compiler step. If your compiler is in the system'sLNKLST
, this might not be needed.
linker
(Object) : Default settings for jobs withtype: linkedit
pgm
(String) : The default program name for the linkage editor (e.g.IEWL
orHEWLKED
).parms
(String, Optional) : Default linkage editor parameters.steplib
(String, Optional) : The defaultSTEPLIB
dataset for the linkage editor step. Usually, the linkage editor is in LNKLST.
cleanup
- Type:
Object
- Description: Controls the automatic deletion of temporary datasets created by Grace. Temporary datasets are those specified with
zos-temp://
orlocal-temp://
virtual path prefixes in joboutputs
not marked withkeep: true
. - Sub-fields:
on_success
(Boolean) :- Default:
true
- If
true
, temporary datasets are automatically deleted if the entire workflow completes successfully. - If
false
, temporary datasets are retained even if the workflow is successful.
- Default:
on_failure
(Boolean) :- Default:
false
- If
true
, temporary datasets are automatically deleted even if the workflow fails at some point. - If
false
, temporary datasets are retained if the workflow fails, which can be useful for debugging the data left by the last successful steps.
- Default: