tccli batch SubmitJob --version 2017-03-12 --Job '{
"JobName": "TestJob", // Job name
"JobDescription": "for test ", // Job description
"Priority": "1", // Job priority
"Tasks": [ // Task list (this example only has one task)
{
"TaskName": "Task1", // Task 1 name
"Application": { // Task execute command
"DeliveryForm": "LOCAL", // Run the local command
"Command": "python -c \\"fib=lambda n:1 if n<=2 else fib(n-1)+fib(n-2); print(fib(20))\\" " // Command content (Fibonacci summation)
},
"ComputeEnv": { // Compute environment configuration
"EnvType": "MANAGED", // Compute environment types: managed and unmanaged
"EnvData": { // Specific configuration (current type is managed. Refer to the CVM instance creation description)
"InstanceType": "S1.SMALL1", // CVM instance type
"ImageId": "", // CVM image ID (Replace with your custom image ID)
}
},
"RedirectInfo": { // Configuration of standard output redirection
"StdoutRedirectPath": "cos://dondonbatchv5-1251783334.cosgz.myqcloud.com/logs/", // Standard output (to be replaced)
"StderrRedirectPath": "cos://dondonbatchv5-1251783334.cosgz.myqcloud.com/logs/" // Standard error (to be replaced)
}
}
]
}'
--Placement'{
"Zone": "ap-guangzhou-2" // Availability zone (to be replaced)
}'
Was this page helpful?