Commit 5363438
committed
fix(debug): import debugpy lazily so workers don't require it
debug.py imported debugpy at module scope, so every Temporal worker
startup (run_worker.py imports setup_debug_if_enabled) required debugpy
to be installed. debugpy is a development-only tool and was only ever
satisfied transitively via ipykernel; agentex-sdk 0.11.5 dropped that
runtime dep, so worker startup began failing with "No module named
'debugpy'" and the temporal tutorials timed out waiting for the agent.
Move the import inside the AGENTEX_DEBUG_ENABLED branch where it's
actually used, so normal (non-debug) startup never needs debugpy.1 parent 1281448 commit 5363438
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
0 commit comments