Skip to content

Cancel remaining fields on exceptions #238

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

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

Conversation

mgorven
Copy link

@mgorven mgorven commented May 13, 2025

gather() returns when the first exception is raised, but does not cancel any remaining tasks. These continue to run which is inefficient, and can also cause problems if they access shared resources like database connections.

Fixes: #236

@mgorven mgorven requested a review from Cito as a code owner May 13, 2025 16:46
gather() returns when the first exception is raised, but does not cancel
any remaining tasks. These continue to run which is inefficient, and can
also cause problems if they access shared resources like database
connections.

Fixes: graphql-python#236
@Cito
Copy link
Member

Cito commented May 13, 2025

Thank you @mgorven - will have a look later this week or on the weekend.

Copy link

codspeed-hq bot commented May 13, 2025

CodSpeed Performance Report

Merging #238 will not alter performance

Comparing mgorven:cancel-tasks (74dae01) with main (0107e30)

Summary

✅ 14 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants