Update task details.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
xxljob-b6ec1xxxx |
| AppName |
string |
Yes |
The application name. |
test-app |
| JobId |
integer |
Yes |
The job ID. |
74 |
| Name |
string |
No |
The job name. |
test-job |
| Description |
string |
No |
The job description. |
test |
| RouteStrategy |
integer |
No |
The routing strategy. Valid values:
|
1 |
| Parameters |
string |
No |
The job parameters. |
test |
| MaxConcurrency |
integer |
No |
The maximum number of concurrent job instances. Note
This parameter defines the maximum number of instances for a single job that can run concurrently. A value of |
1 |
| MaxAttempt |
integer |
No |
The maximum number of retries for a failed job. |
3 |
| AttemptInterval |
integer |
No |
The interval in seconds between retry attempts. |
3 |
| JobHandler |
string |
No |
The job handler name. |
testJobVoidHandler |
| Script |
string |
No |
The script content for non-BEAN jobs. |
echo "hello world" |
| TimeType |
integer |
No |
The time type. Valid values:
|
1 |
| TimeExpression |
string |
No |
The time expression. The expression format depends on the
|
0 0 4 ? * Mon/1 |
| Calendar |
string |
No |
The custom calendar. |
workday |
| Priority |
integer |
No |
The job execution priority. Valid values:
|
10 |
| StartTimeType |
string |
No |
The task execution priority. The following values are supported:
|
1 |
| StartTime |
integer |
No |
The type of the start time. |
1716902187 |
| Timezone |
string |
No |
The start time of the schedule. |
Hongkong |
| NoticeConfig |
object |
No |
Time zone Note
The default is the time zone of the SchedulerX server. |
|
| TimeoutEnable |
boolean |
No |
true to enable the alarm, or false to disable it. |
true |
| Timeout |
integer |
No |
|
90 |
| TimeoutKillEnable |
boolean |
No |
true to terminate the job, or false to let it continue. |
true |
| SuccessNotice |
boolean |
No |
true to enable notifications, or false to disable them. |
true |
| FailEnable |
boolean |
No |
true to enable the alarm, or false to disable it. |
true |
| FailLimitTimes |
integer |
No |
|
true |
| MissWorkerEnable |
boolean |
No |
true to enable the alarm, or false to disable it. |
true |
| SendChannel |
string |
No |
sms: sms
- phone: voice call
- mail: email
- webhook: webhook
> You can specify multiple channels, separated by commas. |
webhook,sms,mail,phone |
| EndEarlyEnable |
boolean |
No |
true to enable the alarm, or false to disable it. |
|
| EndEarly |
integer |
No |
|
30 |
| NoticeContacts |
array<object> |
No |
Notification configuration |
|
|
object |
No |
|
||
| ContactType |
integer |
No |
|
1 |
| Name |
string |
No |
|
xiaoming |
| ExecutorBlockStrategy |
integer |
No |
Notification contact configuration |
1 |
| ChildJobId |
string |
No |
The client blocking strategy.
|
1,2 |
| Weight |
integer |
No |
The ID of the child job. Separate multiple IDs with a comma. |
1 |
| DependentStrategy |
integer |
No |
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The response code. |
200 |
| Message |
string |
The error message. |
Parameter error: content is null. |
| RequestId |
string |
The unique identifier for the request. Alibaba Cloud generates this ID to help you troubleshoot issues. |
3808cf26-dde2-4286-8503-b0a2cd4065a7 |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "Parameter error: content is null.",
"RequestId": "3808cf26-dde2-4286-8503-b0a2cd4065a7",
"Success": true
}
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.