Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow fetching multiple tasks at once #261

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

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.

1 participant