This topic describes the system variables of scripts.
The agent version must be 1.12.5 or later.
Variable | Description | Example |
#{schedulerx.jobParameters} | The job parameter. | test |
#{schedulerx.shardingId} | The shard ID. This variable is supported by broadcast jobs and sharding jobs. | 0 |
#{schedulerx.shardingParameters} | The shard parameter. This variable is supported by sharding jobs. | hangzhou |
#{schedulerx.shardingNum} | The total number of shards. This variable is supported by broadcast jobs and sharding jobs. | 2 |
#{schedulerx.attempt} | The number of times a job is retried. | 0 |
#{schedulerx.triggerType} | The trigger type. Valid values:
| 1 |
#{schedulerx.scheduleTime} | The scheduling timestamp, which is accurate to milliseconds. | 1743150114875 |
#{schedulerx.dataTime} | The data timestamp, which is accurate to milliseconds. | 1743150114875 |