]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/vol: add pause/resume mechanism for async jobs
authorRishabh Dave <ridave@redhat.com>
Tue, 3 Sep 2024 10:01:07 +0000 (15:31 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 21 Mar 2025 12:38:08 +0000 (18:08 +0530)
commit0f784ee4ba0e79a9db319605c2b5d16f7bf75306
tree68297c3fcb63a20e731e5a9ecf34bf09a82397f6
parent87958241d0651b367e8eac094602ae2a3106bfb9
mgr/vol: add pause/resume mechanism for async jobs

Add mechansim that allows pausing/resuming of the entire async job
machinery that queues, launches and picks next async job; both async
jobs, clones as well as purges.

And then add mgr/vol config option pause_purging and pause_cloning so
that both of these async jobs can be paused and resumed individually.

Fixes: https://tracker.ceph.com/issues/61903
Fixes: https://tracker.ceph.com/issues/68630
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 01d37d5e1ba0e250e9d3a5f28ec7f3fa3597c63f)
src/pybind/mgr/volumes/fs/async_job.py
src/pybind/mgr/volumes/module.py