JobContext parameter descriptions
Updated at:
This topic describes the JobContext parameters.
| Parameter | Description |
| long jobId | The job ID. |
| long jobInstanceId | The job instance ID. |
| long wfInstanceId | The workflow instance ID. |
| long taskId | The ID of a subtask in a distributed task. The ID of the root task is 0. |
| DateTime scheduleTime | The scheduled time of the instance. |
| DateTime dataTime | The data timestamp of the instance. |
| String jobType | The job type. |
| String taskName | The subtask name. |
| Object task | The subtask body. |
| String jobParameters | The static job parameters configured in the console. The size of jobParameters cannot exceed 10,000 bytes. |
| String instanceParameters | The dynamic instance parameters triggered by an API call. |
| int maxAttempt | The maximum number of retries for the instance. |
| int attempt | The current number of retries for the instance. |
| int taskMaxAttempt | The maximum number of retries for the subtask. |
| int taskAttempt | The current number of retries for the subtask. |
List<JobInstanceData> upstreamData | The upstream data of the workflow instance. There can be multiple upstream sources. The data is in the List<JobInstanceData> format. |
| Long shardingId | The shard ID. This parameter applies to the sharding model and the broadcast model. |
| String shardingParameter | The sharding parameter. This parameter applies to the sharding model. |
| int shardingNum | The number of shards. This parameter applies to the sharding model and the broadcast model. |
Is this page helpful?