GetJobExecution

更新时间:
复制 MD 格式

Returns the details of a Task Execution.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The ID of the cluster.

xxljob-b6ec1xxxx

AppName

string

Yes

The name of the application.

test-app

JobExecutionId

string

Yes

The ID of the job execution.

1310630367761285120

MseSessionId

string

No

Response elements

Element

Type

Description

Example

object

The response schema.

RequestId

string

The ID of the request.

39938688-0BAB-5AD8-BF02-F4910FAC7589

Code

integer

The response code.

200

Message

string

The error message.

Parameter error: content is null.

Success

boolean

Indicates whether the API call succeeded.

  • true: The request was successful.

  • false: The request failed.

true

Data

object

JobExecutionId

string

The ID of the job execution.

1310630367761285120

JobId

integer

The ID of the job.

74

JobName

string

The name of the job.

天猫-自动审单

JobType

string

The type of the job.

xxljob

Parameters

string

The parameters of the job.

/home/avatar/system/services/biz/payment/crontab/monitorpayment.php

ScheduleTime

string

The scheduled time for the job execution.

2025-03-11 00:06:10

DataTime

string

The data timestamp for the job instance.

2025-03-11 00:06:10

StartTime

string

The time when the job execution started.

2025-03-11 00:06:10

EndTime

string

The time when the job execution ended.

2024-10-29 15:56:36

Duration

integer

The duration of the job execution.

1

Executor

string

Details of the executor that ran the job. The value is a JSON string.

{'Status': 'NORMAL', 'ActiveCount': 4, 'UnavailableCount': 0, 'ExpectedCount': 4, 'RiskCount': 0}

Result

string

The result of the job execution. The value is a JSON string.

[]

Status

integer

The job execution status. Valid values:

  • 0: UNKNOWN

  • 1: WAITING

  • 2: READY

  • 3: RUNNING

  • 4: SUCCESS

  • 5: FAILED

4

TimeType

integer

The scheduling type of the job. Valid values:

  • -1: none

  • 1: cron

  • 2: fixed_delay

  • 3: fixed_rate

  • 5: one_time

  • 100: api

1

Attempt

integer

The number of execution attempts.

1

AppName

string

The name of the application.

test-app

RouteStrategy

integer

The routing strategy. Valid values:

  • 1: Round Robin

  • 2: Random

  • 3: First

  • 4: Last

  • 5: Least Frequently Used

  • 6: Least Recently Used

  • 7: Consistent Hashing

  • 8: Shard Broadcasting

1

ServerIp

string

The IP address of the scheduling server.

172.3.27.76

TriggerType

integer

Indicates how the job was triggered. Valid values:

  • 0: unknown

  • 1: timer_schedule

  • 2: rerun

  • 3: api_run

  • 4: user_retry

  • 5: system_retry

  • 6: manual

timer_schedule

Examples

Success response

JSON format

{
  "RequestId": "39938688-0BAB-5AD8-BF02-F4910FAC7589",
  "Code": 200,
  "Message": "Parameter error: content is null.\n",
  "Success": true,
  "Data": {
    "JobExecutionId": "1310630367761285120",
    "JobId": 74,
    "JobName": "天猫-自动审单",
    "JobType": "xxljob",
    "Parameters": "/home/avatar/system/services/biz/payment/crontab/monitorpayment.php",
    "ScheduleTime": "2025-03-11 00:06:10",
    "DataTime": "2025-03-11 00:06:10",
    "StartTime": "2025-03-11 00:06:10",
    "EndTime": "2024-10-29 15:56:36",
    "Duration": 1,
    "Executor": "{'Status': 'NORMAL', 'ActiveCount': 4, 'UnavailableCount': 0, 'ExpectedCount': 4, 'RiskCount': 0}",
    "Result": "[]",
    "Status": 4,
    "TimeType": 1,
    "Attempt": 1,
    "AppName": "test-app",
    "RouteStrategy": 1,
    "ServerIp": "172.3.27.76",
    "TriggerType": 0
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter Parameter error: %s. Parameter error: %s
401 IllegalRequest IllegalRequest: %s. Illegal request:%s
500 InternalError InternalError: %s. System Internal Error: %s
403 NoPermission No permission to perform this operation: %s. No permission to perform this operation: %s
404 NotFound Not found: %s. The resource does not exist: %s

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.