PreviewTaskParameters
Previews scheduling parameters without creating real nodes or running instances.
Operation description
Previews the parameter parsing results for each cycle based on the provided script parameters, business date, and scheduling configuration. No node ID is required.
This operation only performs a simulated preview and does not create or run real nodes. The simulated cycles returned for weekly and monthly scheduling cannot be used as the basis for determining actual trigger dates.
Bizdateis the starting business date, normalized to 00:00:00 on that date in the time zone of the service region.TriggerTimeis the scheduled trigger time for the corresponding simulated cycle.System identifiers such as
$nodeiduse a simulated context. The preview value of$nodeidis0, which does not represent a real node.Each cycle uses
Successto indicate the parsing result. If the parsing is successful,Parametersis returned. If the parsing fails,ErrorMessageis returned, and partial parsing results for the cycle are not returned.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The workspace ID. It must belong to the current calling tenant. You can call the ListProjects operation to query the ID. |
100 |
| ProjectEnv |
string |
No |
The workspace environment. Valid values:
|
Prod |
| Parameters |
string |
Yes |
The list of script parameters. The length cannot exceed 65,535 characters. Separate multiple parameters with spaces, such as para1=$bizdate para2=$[hh24]. An empty string is allowed. |
para1=$bizdate para2=$[hh24] |
| Bizdate |
integer |
Yes |
The business date. The value is a 13-digit UNIX timestamp in milliseconds. |
1792425600000 |
| Cron |
string |
Yes |
The scheduling CRON expression. |
00 00 00 * * ? |
| StartTime |
string |
No |
The preview start time for the first scheduling day. The format is HH:mm:ss. Default value: 00:00:00. This parameter takes effect only for non-daily scheduling and is used to filter out cycles earlier than this time on the first scheduling day. |
00:00:00 |
| PreviewCount |
integer |
No |
The number of scheduling cycles to preview. Valid values: 1 to 10. Default value: 3. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| Items |
array<object> |
The parameter preview results for each cycle. |
|
|
object |
The parameter preview item. |
||
| Bizdate |
integer |
The business date of the cycle. The value is a 13-digit UNIX timestamp in milliseconds. |
1792425600000 |
| TriggerTime |
integer |
The simulated scheduled trigger time. The value is a 13-digit UNIX timestamp in milliseconds. |
1792512000000 |
| Parameters |
string |
The complete script parameter string parsed for the cycle. Multiple parameters are separated by spaces. This parameter is returned when Success is true. |
para1=20261020 para2=00 |
| Success |
boolean |
Indicates whether the scheduling parameters for the cycle are parsed successfully. Valid values:
|
true |
| ErrorMessage |
string |
The error message returned when the parsing for the cycle fails. This parameter is returned when Success is false and is not returned when Success is true. |
Failed to parse scheduling parameters. Check the parameter settings. |
Each element in Items corresponds to a preview cycle and is returned in the order of the simulated cycles. The examples in the field table illustrate the values of each field. The actual returned fields depend on the parse result of the cycle.
Example of a successfully parsed cycle item:
{
"Bizdate": 1792425600000,
"TriggerTime": 1792512000000,
"Parameters": "para1=20261020 para2=00",
"Success": true
}
Example of a cycle item with a failed parse:
{
"Bizdate": 1792425600000,
"TriggerTime": 1792512000000,
"Success": false,
"ErrorMessage": "Failed to parse scheduling parameters. Check the parameter settings."
}
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"Items": [
{
"Bizdate": 1792425600000,
"TriggerTime": 1792512000000,
"Parameters": "para1=20261020 para2=00",
"Success": true,
"ErrorMessage": "Failed to parse scheduling parameters. Check the parameter settings."
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.