Skip to content

Conversation

@evanh
Copy link
Member

@evanh evanh commented Mar 18, 2025

Change the store to allow fetching multiple pending tasks at once. This is the first step towards being able to batch fetch tasks from the worker.

This adds a get_pending_activations function, and points the existing function to call that function with a limit of 1. In the future new endpoints can leverage the pending activations function directly. That function accepts the namespaces that are being requested, and the number of pending tasks that can be returned.

Change the store to allow fetching multiple pending tasks at once. This is the first step towards
being able to batch fetch tasks from the worker.

This adds a `get_pending_activations` function, and points the existing function to call that
function with a limit of 1. In the future new endpoints can leverage the pending activations
function directly. That function accepts the namespaces that are being requested, and the number of
pending tasks that can be returned.
@evanh evanh requested a review from a team March 18, 2025 16:28
@codecov
Copy link

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.79%. Comparing base (f150b0b) to head (f23ddba).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #261      +/-   ##
==========================================
+ Coverage   83.35%   83.79%   +0.44%     
==========================================
  Files          19       20       +1     
  Lines        3568     3697     +129     
==========================================
+ Hits         2974     3098     +124     
- Misses        594      599       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

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

Looks good to me. I don't think we'll need a batch API in the immediate future. We could hold onto this until the need for batch get is more evident though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants