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

New api to query queue size based on task type and domain #2972

Merged
merged 2 commits into from
May 10, 2022

Conversation

aravindanr
Copy link
Collaborator

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

Changes in this PR

A new api that can query task queue sizes based on task type and domain

Alternatives considered

None

@@ -111,6 +111,17 @@ public Map<String, Integer> size(
return taskService.getTaskQueueSizes(taskTypes);
}

@GetMapping("/queue/size")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can the API above in line 107 - @GetMapping("/queue/sizes") be modified to support this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If i were to modify it, i would make it like the new api that's added. /queue/sizes accepts a list and is unbounded. We can deprecate /queue/sizes and remove it in an upcoming release.

@aravindanr aravindanr merged commit 67f39ba into main May 10, 2022
@aravindanr aravindanr deleted the feature/queue_size_by_domain branch May 10, 2022 05:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants