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

Added ability to mark requests as warmup #7798

Merged
merged 3 commits into from
Dec 3, 2024
Merged

Conversation

tobias-tengler
Copy link
Collaborator

Hot Chocolate has long had InitializeOnStartup as a mechanism to optimize the performance of initial operations.
It also already has the ability to execute warmup tasks. If you want to initialize caches at startup, by for example performing a dry run of your most important persisted operations, you were kind of out of luck, since there was no easy and builtin way to skip the actual execution of those warmup requests.

This PR adds the ability to mark requests as warmup, so they skip the execution step and bypass things like persisted operations. I've also documented the entire feature in more detail.

@github-actions github-actions bot added 📚 documentation This issue is about working on our documentation. 🌶️ website 🌶️ hot chocolate labels Dec 2, 2024
@tobias-tengler tobias-tengler added the 👓 ready-for-review The PR is ready for review. label Dec 2, 2024
@michaelstaib
Copy link
Member

This one is looking good. Will merge it tomorrow.

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.33%. Comparing base (a60e261) to head (35b66aa).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7798      +/-   ##
==========================================
- Coverage   74.34%   74.33%   -0.01%     
==========================================
  Files        2867     2870       +3     
  Lines      149872   149897      +25     
  Branches    17414    17416       +2     
==========================================
+ Hits       111416   111426      +10     
- Misses      32653    32666      +13     
- Partials     5803     5805       +2     
Flag Coverage Δ
unittests 74.33% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@michaelstaib michaelstaib changed the title Add ability to mark requests as warmup Added ability to mark requests as warmup Dec 3, 2024
@michaelstaib michaelstaib merged commit b669e1f into main Dec 3, 2024
8 checks passed
@michaelstaib michaelstaib deleted the tte/implement-warmup branch December 3, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation This issue is about working on our documentation. 🌶️ hot chocolate 👓 ready-for-review The PR is ready for review. 🌶️ website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants