Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Async support for `PDBDebugger`

Aperta
#1,201 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Inizia con async_driver.Builder(), PDBDebugger e la convalida del ciclo di vita dell’adapter che solleva il ValueError segnalato. Riproduci il problema con la configurazione asincrona mostrata, quindi traccia come vengono raccolti i metodi del ciclo di vita sincroni e asincroni. Il lavoro è completato quando PDBDebugger può essere usato con async_driver.Builder() senza l’errato conflitto dell’adapter e il comportamento rilevante è coperto dai test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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: []

Lingua principale
Jupyter Notebook
Stelle
2.6k
Fork
218
Merge medio
2g 13h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/hamilton

Tutte le issue di apache/hamilton

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.