mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 12:16: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
|
self.snapshots_obj[snapshot.slug] = snapshot
|
||||||
return snapshot
|
return snapshot
|
||||||
|
|
||||||
@Job(conditions=[JobCondition.FREE_SPACE, JobCondition.HEALTHY])
|
@Job(conditions=[JobCondition.FREE_SPACE])
|
||||||
async def do_snapshot_full(self, name="", password=None):
|
async def do_snapshot_full(self, name="", password=None):
|
||||||
"""Create a full snapshot."""
|
"""Create a full snapshot."""
|
||||||
if self.lock.locked():
|
if self.lock.locked():
|
||||||
@ -158,7 +158,7 @@ class SnapshotManager(CoreSysAttributes):
|
|||||||
self.sys_core.state = CoreState.RUNNING
|
self.sys_core.state = CoreState.RUNNING
|
||||||
self.lock.release()
|
self.lock.release()
|
||||||
|
|
||||||
@Job(conditions=[JobCondition.FREE_SPACE, JobCondition.HEALTHY])
|
@Job(conditions=[JobCondition.FREE_SPACE])
|
||||||
async def do_snapshot_partial(
|
async def do_snapshot_partial(
|
||||||
self, name="", addons=None, folders=None, password=None
|
self, name="", addons=None, folders=None, password=None
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user