anishshiva7 opened a new pull request, #9669: URL: https://github.com/apache/texera/pull/9669
### What changes were proposed in this PR? Adds `test_pause_resume_worker_handlers.py`, the first unit tests for `PauseWorkerHandler` and `ResumeWorkerHandler`. They run against the real `PauseManager`, `StateManager` and `InternalQueue`, wired as `Context` wires them, so the transitions and the data gate are observed rather than mocked. No production-code changes. | Handler | Cases | | --- | --- | | pause | RUNNING / READY -> PAUSED with data disabled; idempotent second pause; COMPLETED untouched; response carries the post-transition `state_version` | | resume | user pause -> RUNNING with data re-enabled; READY-paused -> RUNNING; stays PAUSED while an EXCEPTION_PAUSE is held; no-op on RUNNING; COMPLETED untouched | ### Any related issues, documentation, discussions? Closes #9668. ### How was this PR tested? ``` cd amber/src/main/python # after bin/python-proto-gen.sh python -m pytest ../../test/python/core/architecture/handlers/control/ # 115 passed (12 new) ruff check . && ruff format --check . ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) -- 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]
