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

[cluster utilization] get the full list of jobs in 7 days #5376

Merged
merged 3 commits into from
Mar 19, 2021

Conversation

suiguoxin
Copy link
Member

Sorting by completionTime is supported in #5375, we can thus get the whole list of jobs within 7 days

@coveralls
Copy link

coveralls commented Mar 15, 2021

Coverage Status

Coverage remained the same at 34.02% when pulling fc045b1 on suiguoxin:job-list into fe18fd9 on microsoft:master.

@suiguoxin suiguoxin requested a review from Binyang2014 March 15, 2021 02:15
@Binyang2014
Copy link
Contributor

Can you link the rest-server change?

@suiguoxin
Copy link
Member Author

suiguoxin commented Mar 15, 2021

Can you link the rest-server change?

The changes is implemented in #5375. The new API can be previewed here

@suiguoxin suiguoxin mentioned this pull request Mar 15, 2021
14 tasks
return datetime.fromtimestamp(int(timestamp/1000), timezone.utc) > datetime.now(timezone.utc) - timedelta(days=7)


def get_jobs_in_7d(rest_url):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change to another name. This function name is not correct, since it may return job before 7 days and contain dup job.

Copy link
Member Author

Choose a reason for hiding this comment

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

Please change to another name. This function name is not correct, since it may return job before 7 days and contain dup job.

Fixed, thx

@suiguoxin suiguoxin requested a review from Binyang2014 March 19, 2021 05:46
@suiguoxin suiguoxin merged commit 7543ac9 into microsoft:master Mar 19, 2021
@suiguoxin suiguoxin deleted the job-list branch March 19, 2021 08:17
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.

3 participants