

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-6" // Availability zone (to be replaced)}'
ImageId with your custom image ID.tccli batch SubmitJob --version 2017-03-12 --Job '{"JobName": "TestJob", "JobDescription": "for test", "Priority": "1", "Tasks": [{"TaskName": "Task1", "TaskInstanceNum": 1, "Application": {"DeliveryForm": "LOCAL", "Command": "python -c \\"fib=lambda n:1 if n<=2 else fib(n-1)+fib(n-2); print(fib(20))\\" "}, "ComputeEnv": {"EnvType": "MANAGED", "EnvData": {"InstanceType": "S1.SMALL1", "ImageId": "To be replaced" } }, "RedirectInfo": {"StdoutRedirectPath": "To be replaced", "StderrRedirectPath": "To be replaced"}, "MaxRetryCount": 1 } ] }' --Placement '{"Zone": "ap-guangzhou-6"}'
Feedback