调用DescribeJob查询作业信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
ClusterId String ehpc-hz-jeJki6Zam8

集群ID。

JobId String 85[].manager

作业ID。

返回数据

名称 类型 示例值 描述
Message Struct

信息列表。

JobInfo String xxxx

作业详细信息。

RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

请求ID。

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeJob
&ClusterId=ehpc-hz-jeJki6Zam8
&JobId= 85[].manager
&<公共请求参数>

正常返回示例

XML 格式

<DescribeJob>
    <RequestId>9697AD8D-56FA-4C8E-B46C-00AC96313</RequestId>
    <Message>
        <JobInfo>
            <85[].manager>
                <egroup>users</egroup>
                <Stageout_status>1</Stageout_status>
                <Keep_Files>n</Keep_Files>
                <server>manager</server>
                <Mail_Points>a</Mail_Points>
                <Variable_List>
                    <PBS_O_SHELL>/bi/bash</PBS_O_SHELL>
                    <PBS_O_MAIL>/spool/mail/yshrun</PBS_O_MAIL>
                    <PBS_O_HOST>manager</PBS_O_HOST>
                    <PBS_O_SYSTEM>Linux</PBS_O_SYSTEM>
                    <PBS_O_HOME>/home/hun</PBS_O_HOME>
                    <PBS_O_LOGNAME>yshrun</PBS_O_LOGNAME>
                    <PBS_O_WORKDIR>/home/yun/ehpc</PBS_O_WORKDIR>
                    <PBS_O_LANG>zh_CN.UTF-8</PBS_O_LANG>
                    <PBS_O_PATH>/opt/bin:/ulocal/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/pbs/bin:/home/yshrun/.local/bin:/home/yshrun/bin</PBS_O_PATH>
                    <PBS_O_QUEUE>workq</PBS_O_QUEUE>
                </Variable_List>
                <array_state_count>Qued:0 Running:0 Exiting:0 Expired:0 </array_state_count>
                <schedselect>1:ncpus=1</schedselect>
                <Job_Name>ehpcaayjob</Job_Name>
                <project>_pbs_project_default</project>
                <stime>Wed Mar  4 22:30:08 2020</stime>
                <Job_Owner>yshrun@manager</Job_Owner>
                <mtime>Wed Mar  4 22:30:09 2020</mtime>
                <job_state>F</job_state>
                <Hold_Types>n</Hold_Types>
                <qtime>Wed Mar  4 22:30:08 2020</qtime>
                <queue_rank>1583332208409</queue_rank>
                <array>True</array>
                <Output_Path>manager:/home/yshrun/ehpcarr/ehpcarrayjob.o85.^array_index^</Output_Path>
                <ctime>Wed Mar  4 22:30:08 2020</ctime>
                <Rerunable>True</Rerunable>
                <Resource_List>
                    <nodes>1:ppn=1</nodes>
                    <select>1:ncpus=1</select>
                    <nodect>1</nodect>
                    <ncpus>1</ncpus>
                    <place>scatter</place>
                </Resource_List>
                <history_timestamp>1583332209</history_timestamp>
                <Submit_arguments>pbsjob.sh</Submit_arguments>
                <queue_type>E</queue_type>
                <Priority>0</Priority>
                <Checkpoint>u</Checkpoint>
                <substate>92</substate>
                <Join_Path>oe</Join_Path>
                <euser>yshrun</euser>
                <etime>Wed Mar  4 22:30:08 2020</etime>
                <comment>Job Array Began at Wed Mar 04 at 22:30 and finished</comment>
                <Error_Path>manager:/home/yshrun/ehpcarr/ehpcarrayjob.e85.^array_index^</Error_Path>
                <Exit_status>0</Exit_status>
                <array_indices_submitted>1-2</array_indices_submitted>
                <queue>workq</queue>
            </85[].manager>
        </JobInfo>
    </Message>
</DescribeJob>

JSON 格式

{
	"RequestId": "9697AD8D-56FA-4C8E-B46C-00AC96313",
	"Message": {
		"JobInfo": {
			"85[].manager": {
				"egroup": "users",
				"Stageout_status": 1,
				"Keep_Files": "n",
				"server": "manager",
				"Mail_Points": "a",
				"Variable_List": {
					"PBS_O_SHELL": "/bi/bash",
					"PBS_O_MAIL": "/spool/mail/yshrun",
					"PBS_O_HOST": "manager",
					"PBS_O_SYSTEM": "Linux",
					"PBS_O_HOME": "/home/hun",
					"PBS_O_LOGNAME": "yshrun",
					"PBS_O_WORKDIR": "/home/yun/ehpc",
					"PBS_O_LANG": "zh_CN.UTF-8",
					"PBS_O_PATH": "/opt/bin:/ulocal/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/pbs/bin:/home/yshrun/.local/bin:/home/yshrun/bin",
					"PBS_O_QUEUE": "workq"
				},
				"array_state_count": "Qued:0 Running:0 Exiting:0 Expired:0 ",
				"schedselect": "1:ncpus=1",
				"Job_Name": "ehpcaayjob",
				"project": "_pbs_project_default",
				"stime": "Wed Mar  4 22:30:08 2020",
				"Job_Owner": "yshrun@manager",
				"mtime": "Wed Mar  4 22:30:09 2020",
				"job_state": "F",
				"Hold_Types": "n",
				"qtime": "Wed Mar  4 22:30:08 2020",
				"queue_rank": 1583332208409,
				"array": "True",
				"Output_Path": "manager:/home/yshrun/ehpcarr/ehpcarrayjob.o85.^array_index^",
				"ctime": "Wed Mar  4 22:30:08 2020",
				"Rerunable": "True",
				"Resource_List": {
					"nodes": "1:ppn=1",
					"select": "1:ncpus=1",
					"nodect": 1,
					"ncpus": 1,
					"place": "scatter"
				},
				"history_timestamp": 1583332209,
				"Submit_arguments": "pbsjob.sh",
				"queue_type": "E",
				"Priority": 0,
				"Checkpoint": "u",
				"substate": 92,
				"Join_Path": "oe",
				"euser": "yshrun",
				"etime": "Wed Mar  4 22:30:08 2020",
				"comment": "Job Array Began at Wed Mar 04 at 22:30 and finished",
				"Error_Path": "manager:/home/yshrun/ehpcarr/ehpcarrayjob.e85.^array_index^",
				"Exit_status": 0,
				"array_indices_submitted": "1-2",
				"queue": "workq"
			}
		}
	}
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidParams Invalid param: %s 无效的参数: {}

访问错误中心查看更多错误码。