Executing a Job Immediately

Function

This API is used to execute a job immediately and check whether the job can be executed successfully.

URI

Request

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

workspace

No

String

Workspace ID.

  • If this parameter is not set, data in the default workspace is queried by default.
  • To query data in other workspaces, this header must be carried.
Table 3 Parameter

Parameter

Mandatory

Type

Description

jobParams

No

List<JobParam>

Parameter for starting the job.

Table 4 JobParam data structure description

Parameter

Mandatory

Type

Description

name

Yes

String

Name of the parameter. It cannot exceed 64 characters.

value

Yes

String

Value of the parameter. It cannot exceed 1024 characters.

Response

Table 5 Response parameter

Parameter

Mandatory

Type

Description

instanceId

Yes

Long

Job instance ID.

Example

Execute the myJob job once.