Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: batch resume session to support resuming session with several 10…
…0k tasks (#800) # Motivation When a session with more than 400k tasks is resumed, the resume session RPC crashes due to a request too large in the database and fails to change the status of tasks from Paused to Submitted and requeue it. # Description Batching was introduced to update statuses of the tasks that should be resumed. # Testing Unit tests are passing and large sessions can be resumed. # Impact - The RPC will succeed. - As batching was introduced, more requests on the database will be performed and the RPC will take more time. # Checklist - [x] My code adheres to the coding and style guidelines of the project. - [x] I have performed a self-review of my code. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have made corresponding changes to the documentation. - [x] I have thoroughly tested my modifications and added tests when necessary. - [x] Tests pass locally and in the CI. - [x] I have assessed the performance impact of my modifications.
- Loading branch information