-
Notifications
You must be signed in to change notification settings - Fork 549
[Rest API] Add task state; Add job's retry details; Refine job config #2306
Changes from 8 commits
f713a38
68aa15d
3db94bd
5a55fa0
9d83dfb
05d5565
9b6be7f
ab5e958
59a6cf2
dc5e23b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -440,10 +440,16 @@ Status: 200 | |
createdTime: "createdTimestamp", | ||
completedTime: "completedTimestamp", | ||
executionType: "executionType", | ||
// Sum of succeededRetriedCount, transientNormalRetriedCount, | ||
// transientConflictRetriedCount, nonTransientRetriedCount, | ||
// and unKnownRetriedCount | ||
retries: retriedCount, | ||
// sum of retries | ||
retries: retries, | ||
retryDetails: { | ||
// Job cannot get required resource to run within timeout | ||
sunqinzheng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
user: userRetries, | ||
// Job failed due to system/plaform error | ||
system: systemRetries, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "platform" is better than "system" due to:
so can you replace all "system" words with "platform" in this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I find that "system" is used in rest api document (https://github.com/Microsoft/pai/blob/master/docs/rest-server/API.md#post-token) multiple times. Shall we replace them as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems there is no need to distingush with user in that doc, so no ambiguity in the doc (the "system" in the doc implies PAI). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
// Job failed due to user or unknown error | ||
resource: resourceRetries, | ||
}, | ||
appId: "applicationId", | ||
appProgress: "applicationProgress", | ||
appTrackingUrl: "applicationTrackingUrl", | ||
|
@@ -461,6 +467,7 @@ Status: 200 | |
}, | ||
taskStatuses: { | ||
taskIndex: taskIndex, | ||
taskState: taskState, | ||
containerId: "containerId", | ||
containerIp: "containerIp", | ||
containerPorts: { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better name to be retryBreakdown?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "details" is better...