]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/snap_schedule: take snapshots according to schedule.
authorJan Fajerski <jfajerski@suse.com>
Tue, 19 Nov 2019 12:35:20 +0000 (13:35 +0100)
committerJan Fajerski <jfajerski@suse.com>
Thu, 27 Aug 2020 13:55:45 +0000 (15:55 +0200)
commit39cbd137858251f9f79f245bd37fffeba907e199
treee67e518a7b9cfb099ef42a9641b6060a782ae46c
parent29a6f72131056a8b907b09e1170567763388b00a
pybind/mgr/snap_schedule: take snapshots according to schedule.

Timers are scheduled for the next snapshot to be taken. The next Timer
is canceled in case the snapshot DB is changed. When a Timer triggers it
also schedules the next Timer.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/pybind/mgr/snap_schedule/fs/schedule.py
src/pybind/mgr/snap_schedule/module.py
src/pybind/mgr/snap_schedule/tests/fs/test_schedule.py