aglinxinyuan commented on code in PR #4560:
URL: https://github.com/apache/texera/pull/4560#discussion_r3166264761
##########
amber/src/main/python/core/runnables/data_processor.py:
##########
@@ -49,20 +49,34 @@ def run(self) -> None:
with self._context.tuple_processing_manager.context_switch_condition:
self._context.tuple_processing_manager.context_switch_condition.wait()
self._running.set()
- self._switch_context()
+ # Run debug-command / console-flush / exception checks before the
+ # first task, so a debug command queued during worker setup fires
+ # before any tuple/state/marker processing -- without consuming a
+ # round-trip on MainLoop's first switch_context.
+ self._post_switch_context_checks()
Review Comment:
Done in `c3e641a0e7` — added a dedicated `_pre_loop_checks()` that only runs
`_check_and_process_debug_command()`, and `run()` calls that instead of
`_post_switch_context_checks()`.
--
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]