JobContext parameter descriptions

Updated at:

This topic describes the JobContext parameters.

ParameterDescription
long jobIdThe job ID.
long jobInstanceIdThe job instance ID.
long wfInstanceIdThe workflow instance ID.
long taskIdThe ID of a subtask in a distributed task. The ID of the root task is 0.
DateTime scheduleTimeThe scheduled time of the instance.
DateTime dataTimeThe data timestamp of the instance.
String jobTypeThe job type.
String taskNameThe subtask name.
Object taskThe subtask body.
String jobParametersThe static job parameters configured in the console. The size of jobParameters cannot exceed 10,000 bytes.
String instanceParametersThe dynamic instance parameters triggered by an API call.
int maxAttemptThe maximum number of retries for the instance.
int attemptThe current number of retries for the instance.
int taskMaxAttemptThe maximum number of retries for the subtask.
int taskAttemptThe current number of retries for the subtask.
List<JobInstanceData> upstreamDataThe upstream data of the workflow instance. There can be multiple upstream sources. The data is in the List<JobInstanceData> format.
Long shardingIdThe shard ID. This parameter applies to the sharding model and the broadcast model.
String shardingParameterThe sharding parameter. This parameter applies to the sharding model.
int shardingNumThe number of shards. This parameter applies to the sharding model and the broadcast model.