...
List of Environment Variables available with Job Streams
Environment Variable | Example | Description |
---|---|---|
SCHEDULER_JOBSTREAM_INSTANCE_ID | c3f88b94-fd4e-4365-9593-0cf34d575f6e | The instance id of the actual running job stream |
SCHEDULER_JOBSTREAM_JOBSTREAM | myStream | The name of the job stream |
SCHEDULER_JOBSTREAM_TIME | 2017-12-01 09:13:59 | The actual time in the format HH:mm:ss |
SCHEDULER_JOBSTREAM_CENTURY | 31 |
Day of task start time dd | |
SCHEDULER_JOBSTREAM_DAY | 2012 |
Year of task start time YYYY | |
SCHEDULER_JOBSTREAM_YEAR | 2017 |
Year of task start time YYYY | |
SCHEDULER_JOBSTREAM_YEAR_YY | 21 |
Year of task start time YY | |
SCHEDULER_JOBSTREAM_MONTH | 12 |
Month of task start time mm | |
SCHEDULER_JOBSTREAM_MONTH_NAME | April |
Month name of task start time display name UK | |
SCHEDULER_JOBSTREAM_DATE | 20171201 |
Date of task start time yyyyMMdd | |
SCHEDULER_JOBSTREAM_DATE_YY | 17-12-01 |
Dateof task start time yyMMdd | |
SCHEDULER_JOBSTREAM_DATE_YYYY | 2017-12-01 |
Dateof task start time yyyyMMdd | ||
SCHEDULER_JOBSTREAM_FOLDER | /jobs | The folder for the actual running job |
SCHEDULER_JOBSTREAM_JOBNAME | jobs/myJob | The name of the job |
Explanations
- For job parameters the default setting is to be prefixed with
SCHEDULER_PARAM_
, e.g. the parameterhostname
will becomeSCHEDULER_PARAM_HOSTNAME
.You can modify this behavior by specifying job parameters to be used without any prefix. This can be achieved by adding the following parameter configuration to your
./config/scheduler.xml
file and by restarting JobScheduler:Code Block language xml <params> <param name="scheduler.variable_name_prefix" value="*NONE"/> </params>
With this setting a parameter
hostname
will be provided with the environment variableHOSTNAME.
You can use an arbitrary prefix by specifying:
Code Block language xml <params> <param name="scheduler.variable_name_prefix" value="MY_SCHEDULER_PARAM_"/> </params>
With this setting a parameter
hostname
will be provided with the environment variableMY_SCHEDULER_PARAM_HOSTNAME.
The default value is provided by the implicit setting:
Code Block language xml <params> <param name="scheduler.variable_name_prefix" value="SCHEDULER_PARAM_"/> </params>
With this setting a parameter
hostname
will be provided with the environment variableSCHEDULER_PARAM_HOSTNAME.
...