andreahlert commented on PR #796:
URL: https://github.com/apache/burr/pull/796#issuecomment-6610123734

   thanks both, and sorry for the delay on this one.
   
   agree on all 5. rethinking the shape: errors become their own routing 
channel instead of changing get_next_node.
   
   ```python
   .with_transitions(
       ("fetch", "done"),
       ("fetch", "retry", error(TimeoutError, into="last_error")),
       ("*", "give_up", error(Exception, into="last_error")),
   )
   ```
   
   error() transitions are only looked at when the action raised, normal ones 
only when it didn't. so normal resolution stays exactly as main (no tiers), "*" 
only takes error() conditions for now, and the handler can't loop on itself 
since it only re-routes if it raises too. matching is isinstance so hierarchies 
work like except. no match = re-raise like today. into= is optional and writes 
a json record (type, mro, message, traceback) to a normal state field the 
handler declares in reads. the condition itself never reads state, so no 
seeding and old persisted state is fine. suppression logs a warning.
   
   that drops on_error=, with_error_handling and capture_as. _astep rewrite 
goes away on rebase since #895 landed.
   
   went with into= over a private `__ERROR` key since `__` keys are dropped 
when an action writes them, so the handler couldn't even clear it. will post 
this on dev@ too before I rewrite.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to