What's Batch?
Scenarios
Strengths
Glossary
Quota & Limits
Data Security
$ sudo pip install tccli
$ sudo pip install --upgrade tccli
tccli batch help
NAMEbatchDESCRIPTIONbatch-2017-03-12USEAGEtccli batch <action> [--param...]OPTIONShelpshow the tccli batch help info--versionspecify a batch api versionAVAILABLE ACTIONDescribeComputeEnvUsed to query details of the computing environmentCreateTaskTemplateUsed to create a task template
SecretID and SecretKey. See the figure below:

tccli configure and enter the TCCLI configuration information. For details, please see Configuring TCCLI.$ tccli configureTencentCloud API secretId[None]:TencentCloud API secretKey[None]:region[None]:output[json]:


https://batchdemo-xxxxxxxxx.cos.ap-guangzhou.myqcloud.com. The endpoints of the three folders created in Creating a Bucket and Sub-folders can be acquired by combining domain and sub-folder names as follows:cos://batchdemo-xxxxxxxxx.cos.ap-guangzhou.myqcloud.com/logs/cos://batchdemo-xxxxxxxxx.cos.ap-guangzhou.myqcloud.com/input/cos://batchdemo-xxxxxxxxx.cos.ap-guangzhou.myqcloud.com/output/1_SimpleStart.py as an example:# custom (Change to your info)imageId = "img-m4q71qnf"Application = {"DeliveryForm": "LOCAL","Command": " python -c \\"fib=lambda n:1 if n<=2 else fib(n-1)+fib(n-2); print(fib(20))\\" "}StdoutRedirectPath = "cos://batchdemo-xxxxxxxxxx.cos.ap-guangzhou.myqcloud.com/logs/"StderrRedirectPath = "cos://batchdemo-xxxxxxxxxx.cos.ap-guangzhou.myqcloud.com/logs/"
Configuration Item | Description |
imageId | |
StdoutRedirectPath | |
| StderrRedirectPath |
Application | The startup command. Use the default setting. |
cmd = "tccli batch SubmitJob \\--version 2017-03-12 \\--Placement '{\\"Zone\\": \\"ap-guangzhou-6\\"}' \\--Job ' %s ' "%(json.dumps(testJob))
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários