Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
suiguoxin committed Oct 16, 2020
1 parent c9aebdd commit 12a7f06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ const openPAIClient = new PAIV2.OpenPAIClient(cluster);
```ts
await openPAIClient.job.deleteTag(username, jobname, tag);
```

- [x] Get task status (GET /api/v2/jobs/{username}~{jobname}/attempts/{jobAttemptId}/taskRoles/{taskRoleName}/taskIndex/{taskIndex}/attempts)

```ts
Expand Down
12 changes: 6 additions & 6 deletions src/api/v2/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info:
license:
name: MIT License
url: "https://github.com/microsoft/pai/blob/master/LICENSE"
version: 2.1.1
version: 2.2.0
externalDocs:
description: Find out more about OpenPAI
url: "https://github.com/microsoft/pai"
Expand Down Expand Up @@ -1703,7 +1703,7 @@ paths:
retries: 1
accountableRetries: 1
createdTime: 1602480558000
completedTime: 160248ask_0603000
completedTime: 1602480603000
username: test_user
jobName: task_retry_histry_test
jobAttemptId: 0
Expand All @@ -1721,9 +1721,9 @@ paths:
http: 24661
containerGpus: null
containerLog: http://10.151.40.34:9103/log-manager/tail/admin/9893b6e0f9f5997f4a82f23bef39bf32/taskrole/a9f9f1f2-5e43-4423-88c3-022433b8cd7c/
containerExitCode: -220,
containerExitCode: -220
containerExitSpec:
code: -220,
code: -220
phrase: FrameworkAttemptCompletion
issuer: PAI_FC
causer: USER_STOP
Expand All @@ -1747,9 +1747,9 @@ paths:
http: 24661
containerGpus: null
containerLog: http://10.151.40.34:9103/log-manager/tail/admin/9893b6e0f9f5997f4a82f23bef39bf32/taskrole/a9f9f1f2-5e43-4423-88c3-022433b8cd7c/
containerExitCode: -220,
containerExitCode: -220
containerExitSpec:
code: -220,
code: -220
phrase: FrameworkAttemptCompletion
issuer: PAI_FC
causer: USER_STOP
Expand Down
1 change: 0 additions & 1 deletion src/commom/paiHttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class PAIHttpClient {
const res: AxiosResponse<T> = await axios.get<T>(
url, lodash.merge(defaultOptions, options)
);
console.log(res.data);
return res.data;
}
} catch (error) {
Expand Down

0 comments on commit 12a7f06

Please sign in to comment.