This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add status argument to jobstep_aggregate_by_status
Summary: jobstep_aggregate_by_status can sometimes be slow (2-3 seconds per request), since we're loading thousands of items from the database. In some cases, like with autoscaler, we only want to get numbers for a particular type of status, such as just counts for jobsteps that are currently `pending_allocation`. This change lets us specify a specific `status` to get stats on, which significantly speeds up these kinds of requests. Test Plan: Added a unit test for this new functionality. Reviewers: kylec Reviewed By: kylec Subscribers: changesbot, treaster Differential Revision: https://tails.corp.dropbox.com/D222177
- Loading branch information
Robert Lord
committed
Aug 22, 2016
1 parent
d248b7a
commit 7405a53
Showing
2 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters