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

Async support for `PDBDebugger`

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

async_driver.Builder()、PDBDebugger、および報告された ValueError を発生させるアダプターのライフサイクル検証から始めます。示されている非同期構成で問題を再現し、その後、同期および非同期のライフサイクルメソッドがどのように収集されるかを追跡します。async_driver.Builder() で PDBDebugger を誤ったアダプター競合なしに使用でき、関連する動作がテストでカバーされていれば完了です。

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

説明

async enhancement

Is your feature request related to a problem? Please describe.
sf-hamitlon=1.80.0
I would like to use PDBDebugger with async_driver.Builder().

from hamilton.lifecycle import PDBDebugger

dr =  asyncio.run(
    async_driver.Builder()
    .with_modules(__main__)
    .with_config({"env": "dev"})
    .with_adapters(
        # base.PandasDataFrameResult(), 
        # PDBDebugger("raw_loaded_report_data", after=True),
        PDBDebugger("raw_trades.missing_trade_attributes", during=True),
    )
    .build()
)

Raises : ValueError: Multiple adapters cannot (currently) implement the same lifecycle method. Sync methods: ['do_node_execute']. Async methods: []
even though there was only one adapter provided. I think this error is a bit imprecise?

Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to use PDBDebugger with async_driver.Builder().
If it makes sense, I'd also like to

Describe alternatives you've considered
Using pdb.set_trace() on lines I want to inspect.

Additional context
The async_driver requires the use of .with_adapters() but does not support multiple adapters.

 .with_adapters(
       base.PandasDataFrameResult(), 
       PDBDebugger("raw_trades.missing_trade_attributes", during=True),
    )

Raises: ValueError: Multiple adapters cannot (currently) implement the same lifecycle method. Sync methods: ['do_node_execute']. Async methods: []

主要言語
Jupyter Notebook
スター
2.6k
フォーク
223
平均マージ
14時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

apache/hamilton のほかの issue

apache/hamilton の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

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

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