Commit 2616f4b
committed
Tried out an alt approach for
This change is masked out now BUT i'm leaving it in for reference.
I was debugging a multi-actor fault where the primary source actor was
an infected-aio-subactor (`brokerd.ib`) and it seemed like the REPL was only
entering on the `trio` side (at a `.open_channel_from()`) and not
eventually breaking in the `asyncio.Task`. But, since (changing
something?) it seems to be working now, it's just that the `trio` side
seems to sometimes handle before the (source/causing and more
child-ish) `asyncio`-task, which is a bit odd and not expected..
We could likely refine (maybe with an inter-loop-task REPL lock?) this
at some point and ensure a child-`asyncio` task which errors always
grabs the REPL **first**?
Lowlevel deats/further-todos,
- add (masked) `maybe_open_crash_handler()` block around
`asyncio.Task` execution with notes about weird parent-addr
delivery bug in `test_sync_pause_from_aio_task`
* yeah dunno what that's about but made a bug; seems to be IPC
serialization of the `TCPAddress` struct somewhere??
- add inter-loop lock TODO for avoiding aio-task clobbering
trio-tasks when both crash in debug-mode
Also,
- change import from `tractor.devx.debug` to `tractor.devx`
- adjust `get_logger()` call to use new implicit mod-name detection
added to `.log.get_logger()`, i.e. sin `name=__name__`.
- some teensie refinements to `open_channel_from()`:
* swap return type annotation for to `tuple[LinkedTaskChannel, Any]`
(was `Any`).
* update doc-string to clarify started-value delivery
* add err-log before `.pause()` in what should be an unreachable path.
* add todo to swap the `(first, chan)` pair to match that of ctx..
(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code.to_asyncio crashes1 parent b5fd2a4 commit 2616f4b
1 file changed
+36
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
442 | 457 | | |
| 458 | + | |
443 | 459 | | |
444 | 460 | | |
445 | 461 | | |
| |||
546 | 562 | | |
547 | 563 | | |
548 | 564 | | |
549 | | - | |
| 565 | + | |
550 | 566 | | |
551 | 567 | | |
552 | 568 | | |
| |||
946 | 962 | | |
947 | 963 | | |
948 | 964 | | |
949 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
950 | 970 | | |
951 | 971 | | |
952 | 972 | | |
| |||
1280 | 1300 | | |
1281 | 1301 | | |
1282 | 1302 | | |
1283 | | - | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1284 | 1306 | | |
1285 | | - | |
1286 | | - | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1287 | 1314 | | |
1288 | 1315 | | |
1289 | 1316 | | |
| |||
1308 | 1335 | | |
1309 | 1336 | | |
1310 | 1337 | | |
| 1338 | + | |
1311 | 1339 | | |
1312 | 1340 | | |
1313 | 1341 | | |
| |||
1338 | 1366 | | |
1339 | 1367 | | |
1340 | 1368 | | |
1341 | | - | |
| 1369 | + | |
| 1370 | + | |
1342 | 1371 | | |
1343 | 1372 | | |
1344 | 1373 | | |
| |||
0 commit comments