Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Auto-isolate asyncio tasks if event loop is running

オープン
#5,379 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

まず既存の AsyncioIntegration とその isolation-scope の動作を読み、次に提案されている自動有効化の設計を比較します。実行中のイベントループにどのようにパッチが適用されるか、繰り返しパッチを適用できるか、既存の AsyncioIntegration ユーザーにどのような影響があるかを確認します。タスクの分離が自動的に機能し、追加機能は引き続き明示的な opt-in であり、イベントループがない場合も適切に失敗すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Better Async Support Improvement Integration: Asyncio Python

Currently, the opt-in AsyncioIntegration is responsible for multiple things, one of them being providing proper scope isolation in asyncio tasks. Without this functionality, people are running into different types of hard-to-diagnose scope bleed issues, like here.

Goal
  • Automatically patch the current event loop to isolate tasks in their isolation scopes, if there is an event loop running
  • For additional functionality (creating task spans, etc.), explicit opt-in should still be required from users
How to do this

Different ways to do this, each with its own caveats (e.g. introducing breaking changes).

  1. Take the isolation scope logic out of AsyncioIntegration into its own integration and make it auto-enabled (best effort, if there is no event loop we can't do anything).
  2. Make AsyncioIntegration auto-enabled, and change the additional functions it's providing (like task spans) to be opt-in. Also, make it fail gracefully if there is no event loop to patch.
  3. ???

When picking an option, consider:

  • Will this break behavior for existing users using the AsyncioIntegration?
  • Is there a risk of double-patching the event loop?
主要言語
Python
スター
2.2k
フォーク
672
平均マージ
22時間 47分
マージ済み PR(30日)
224

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-python のほかの issue

getsentry/sentry-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。