All Products
Search
Document Center

Microservices Engine:System variables of scripts

Last Updated:Apr 01, 2025

This topic describes the system variables of scripts.

Note

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: periodic scheduling

  • 2: data refresh

  • 3: API scheduling

  • 4: manual rerun

  • 5: system retry

  • 6: manual run

1

#{schedulerx.scheduleTime}

The scheduling timestamp, which is accurate to milliseconds.

1743150114875

#{schedulerx.dataTime}

The data timestamp, which is accurate to milliseconds.

1743150114875