mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-12 19:56:29 +00:00
Change snapshot create conditions (#2289)
This commit is contained in:
parent
6db6ab96e6
commit
cfae20a3ec
@ -122,7 +122,7 @@ class SnapshotManager(CoreSysAttributes):
|
||||
self.snapshots_obj[snapshot.slug] = snapshot
|
||||
return snapshot
|
||||
|
||||
@Job(conditions=[JobCondition.FREE_SPACE, JobCondition.HEALTHY])
|
||||
@Job(conditions=[JobCondition.FREE_SPACE])
|
||||
async def do_snapshot_full(self, name="", password=None):
|
||||
"""Create a full snapshot."""
|
||||
if self.lock.locked():
|
||||
@ -158,7 +158,7 @@ class SnapshotManager(CoreSysAttributes):
|
||||
self.sys_core.state = CoreState.RUNNING
|
||||
self.lock.release()
|
||||
|
||||
@Job(conditions=[JobCondition.FREE_SPACE, JobCondition.HEALTHY])
|
||||
@Job(conditions=[JobCondition.FREE_SPACE])
|
||||
async def do_snapshot_partial(
|
||||
self, name="", addons=None, folders=None, password=None
|
||||
):
|
||||
|
Loading…
x
Reference in New Issue
Block a user