Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Rest API for retry-history #4958

Merged
merged 18 commits into from
Oct 22, 2020
Merged

Conversation

suiguoxin
Copy link
Member

Support 2 new APIs:

  • Get job status with specific job attempt: /api/v2/jobs/{user}~{job}/attempts/{jobAttemptId}
  • Get task status: /api/v2/jobs/{user}~{job}/attempts/{jobAattemptId}/taskRoles/{taskRoleName}/taskIndex/{taskIndex}/attempts

@coveralls
Copy link

coveralls commented Oct 14, 2020

Coverage Status

Coverage decreased (-0.2%) to 34.037% when pulling aa3e071 on suiguoxin:retry-history into 869e14f on microsoft:master.

@@ -1,46 +1,38 @@
// Copyright (c) Microsoft Corporation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you put this file under src/models/v2/job/? it's not a common utility and is only used by v2/job related

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you put this file under src/models/v2/job/? it's not a common utility and is only used by v2/job related

Moved to src/models/v2/utils. The utility is also used by v2/job-attempt and v2/task.

@@ -0,0 +1,57 @@
// Copyright (c) Microsoft Corporation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Fixed

@suiguoxin suiguoxin closed this Oct 15, 2020
@suiguoxin suiguoxin reopened this Oct 15, 2020
Copy link
Member

@abuccts abuccts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls fix the failed api tests in Jenkins

@yqwang-ms
Copy link
Member

yqwang-ms commented Oct 16, 2020

@yqwang-ms
Copy link
Member

  ).getTime() || null,

currentAttemptCreatedTime = taskStatus.attemptStatus.startTime


In reply to: 711682627 [](ancestors = 711682627)


Refers to: src/rest-server/src/models/v2/job/k8s.js:133 in 33b39f8. [](commit_id = 33b39f8, deletion_comment = False)

@suiguoxin suiguoxin force-pushed the retry-history branch 2 times, most recently from b9bfc07 to 8946f20 Compare October 20, 2020 14:48
Copy link
Member

@yqwang-ms yqwang-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Member

@yqwang-ms yqwang-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

Copy link
Member

@yqwang-ms yqwang-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@suiguoxin suiguoxin merged commit b8c57ad into microsoft:master Oct 22, 2020
@suiguoxin suiguoxin deleted the retry-history branch October 22, 2020 03:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants