LangGraph graphs with checkpointed/multi-turn state fail the spawn-safety probe

Aperta
#479 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Inizia da _register_passthrough_worker in src/conductor/ai/agents/runtime/runtime.py e probe_spawn_safety in src/conductor/ai/agents/runtime/_worker_entries.py, quindi riproduci il problema con examples/agents/langgraph/03_memory.py. Confronta gli esempi con checkpoint e multi-turno con un esempio LangGraph funzionante e verifica che 03_memory.py, 13_multi_turn.py e 27_persistent_memory.py vengano eseguiti correttamente senza il problema di spawn-safety.

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

Descrizione

bug

Files: src/conductor/ai/agents/runtime/runtime.py (_register_passthrough_worker), src/conductor/ai/agents/runtime/_worker_entries.py (probe_spawn_safety)

Symptom: python examples/agents/langgraph/03_memory.py fails in <1s, client-side, before any server call:

SpawnSafetyError: worker 'memory_agent' is not spawn-safe
  AttributeError("Can't get local object 'CompiledStateGraph.attach_node.<locals>._get_updates'")
Define the callable at module level (importable by qualified name).

Cause: The passthrough worker pickles the compiled graph. LangGraph's CompiledStateGraph contains a local closure, so it can never be picklable. The error's advice is unfollowable — the object belongs to LangGraph, not to user code.

Fix: Either avoid pickling the compiled graph in the framework passthrough path, or detect this graph shape and fail with a message naming a supported alternative.

Verify: python examples/agents/langgraph/03_memory.py runs. Same for 13_multi_turn.py and 27_persistent_memory.py.

Scope: 3 of 46 langgraph examples. All three use checkpointed or multi-turn state; the other 43 pass.

Lingua principale
Python
Stelle
104
Fork
43
Merge medio
1g 13h
PR unite (30g)
4

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 conductor-oss/python-sdk

Tutte le issue di conductor-oss/python-sdk

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.