Flip a couple more debug scripts to UDS tpt
For now just as sanity that we're not breaking anything on that transport backend (since just a little while back there were issues with crash handling in subs..) when it comes to crash-REPLing.cluster_api_egs_conflict
							parent
							
								
									df8e326e39
								
							
						
					
					
						commit
						1d8230716c
					
				| 
						 | 
					@ -24,10 +24,9 @@ async def spawn_until(depth=0):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async def main():
 | 
					async def main():
 | 
				
			||||||
    """The main ``tractor`` routine.
 | 
					    '''
 | 
				
			||||||
 | 
					    The process tree should look as approximately as follows when the
 | 
				
			||||||
    The process tree should look as approximately as follows when the debugger
 | 
					    debugger first engages:
 | 
				
			||||||
    first engages:
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    python examples/debugging/multi_nested_subactors_bp_forever.py
 | 
					    python examples/debugging/multi_nested_subactors_bp_forever.py
 | 
				
			||||||
    ├─ python -m tractor._child --uid ('spawner1', '7eab8462 ...)
 | 
					    ├─ python -m tractor._child --uid ('spawner1', '7eab8462 ...)
 | 
				
			||||||
| 
						 | 
					@ -37,10 +36,11 @@ async def main():
 | 
				
			||||||
    └─ python -m tractor._child --uid ('spawner0', '1d42012b ...)
 | 
					    └─ python -m tractor._child --uid ('spawner0', '1d42012b ...)
 | 
				
			||||||
       └─ python -m tractor._child --uid ('name_error', '6c2733b8 ...)
 | 
					       └─ python -m tractor._child --uid ('name_error', '6c2733b8 ...)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    """
 | 
					    '''
 | 
				
			||||||
    async with tractor.open_nursery(
 | 
					    async with tractor.open_nursery(
 | 
				
			||||||
        debug_mode=True,
 | 
					        debug_mode=True,
 | 
				
			||||||
        loglevel='warning'
 | 
					        loglevel='devx',
 | 
				
			||||||
 | 
					        enable_transports=['uds'],
 | 
				
			||||||
    ) as n:
 | 
					    ) as n:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # spawn both actors
 | 
					        # spawn both actors
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,6 +37,7 @@ async def main(
 | 
				
			||||||
            enable_stack_on_sig=True,
 | 
					            enable_stack_on_sig=True,
 | 
				
			||||||
            # maybe_enable_greenback=False,
 | 
					            # maybe_enable_greenback=False,
 | 
				
			||||||
            loglevel='devx',
 | 
					            loglevel='devx',
 | 
				
			||||||
 | 
					            enable_transports=['uds'],
 | 
				
			||||||
        ) as an,
 | 
					        ) as an,
 | 
				
			||||||
    ):
 | 
					    ):
 | 
				
			||||||
        ptl: tractor.Portal  = await an.start_actor(
 | 
					        ptl: tractor.Portal  = await an.start_actor(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue