Skip to content

fix(incremental): do not initiate non-pending execution groups #4140

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

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Jul 3, 2024

Currently, when early execution is disabled, we still use the early execution logic to initiate execution groups, which may cause early initiation of non-pending execution groups.

alternative to #4109, causes potentially stacking delays when combinations of shared and non-shared keys between sibling defers cause separate deferred grouped field sets for the same deferred fragment.

when early execution is disabled, deferred grouped field sets should start immediately if and only if one of their deferred fragments is released as pending

see: graphql/defer-stream-wg#84
Copy link

netlify bot commented Jul 3, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit aac3519
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6685a71d3f2f3b00080fdb3c
😎 Deploy Preview https://deploy-preview-4140--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Jul 3, 2024

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

yaacovCR added 2 commits July 3, 2024 22:30
deferred grouped field sets are only initiated when the WrappedGraphQLResult in which they are contained are processed
@yaacovCR yaacovCR force-pushed the delay-delay-delay branch from 1cb66ec to aac3519 Compare July 3, 2024 19:31
@yaacovCR yaacovCR marked this pull request as ready for review July 11, 2024 13:20
@yaacovCR yaacovCR requested a review from a team as a code owner July 11, 2024 13:20
@yaacovCR yaacovCR changed the title alternative solution fix(incremental): do not initiate non-pending execution groups Jul 11, 2024
@yaacovCR yaacovCR merged commit 4b0c113 into graphql:main Jul 11, 2024
20 checks passed
@yaacovCR yaacovCR deleted the delay-delay-delay branch July 11, 2024 18:18
@JoviDeCroock JoviDeCroock added the PR: bug fix 🐞 requires increase of "patch" version number label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants