Yicong-Huang opened a new pull request, #4685:
URL: https://github.com/apache/texera/pull/4685

   ## What changes were proposed in this PR?
   
   Cleanup-only refactor of 
`amber/src/main/python/core/runnables/data_processor.py`:
   
   - `process_internal_marker`, `process_state`, and `process_tuple` each 
opened the same `try / except / finally` block plus a `with replace_print(...)` 
to invoke the executor, route any exception through the exception manager, and 
always call `_switch_context()` at the end. Pull that shape into a single 
`_executor_session` `@contextmanager` that yields `(executor, port_id)`; each 
method now reads as just its body.
   - Inline `_pre_loop_checks` and `_post_switch_context_checks` — both were 
one-line wrappers around `_check_and_process_debug_command`.
   
   Net diff: 37 insertions, 65 deletions; no behavior change.
   
   ## Any related issues, documentation, discussions?
   
   Closes #4684.
   
   ## How was this PR tested?
   
   - `ruff check . && ruff format --check .` clean.
   - `pytest core/runnables/test_main_loop.py -x -q` — 9 passed locally (same 
suite that exercises the DataProcessor end-to-end via MainLoop).
   
   ## Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 4.7 (Claude Code)


-- 
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