anishshiva7 opened a new issue, #9668:
URL: https://github.com/apache/texera/issues/9668

   ### Task Summary
   
   Add unit tests for the Python worker's `PauseWorkerHandler` and 
`ResumeWorkerHandler` (`core/architecture/handlers/control/`). Most sibling 
control handlers have a `test_*_handler.py`; these two have none, though they 
drive the worker's PAUSED/RUNNING transitions.
   
   ## Behavior to pin (real `PauseManager`, `StateManager`, `InternalQueue`)
   
   | Scenario | Contract |
   | --- | --- |
   | pause from RUNNING or READY | response and state are PAUSED; data is 
disabled by pause |
   | pause twice | still PAUSED, same state version |
   | pause a COMPLETED worker | state stays COMPLETED |
   | resume after a user pause | RUNNING; data re-enabled |
   | resume while an EXCEPTION_PAUSE is held | stays PAUSED; data stays 
disabled |
   | resume a RUNNING worker | stays RUNNING, version unchanged |
   | response | `state_version` equals the state manager's version after the 
call |
   
   ## Scope
   
   - New test: 
`amber/src/test/python/core/architecture/handlers/control/test_pause_resume_worker_handlers.py`.
   - No production-code changes.
   
   ### Task Type
   
   - [ ] Refactor / Cleanup
   - [ ] DevOps / Deployment / CI
   - [x] Testing / QA
   - [ ] Documentation
   - [ ] Performance
   - [ ] Other
   


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