mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-21 11:41:28 +00:00
try to remove the handle
This commit is contained in:
parent
3965203d28
commit
5d385431e3
|
@ -80,9 +80,7 @@ def do_autobackup():
|
|||
"""
|
||||
time = datetime.utcnow().replace(tzinfo=timezone.utc)
|
||||
for service in Backups.services_to_back_up(time):
|
||||
handle = start_backup(service.get_id(), BackupReason.AUTO)
|
||||
# To be on safe side, we do not do it in parallel
|
||||
handle(blocking=True)
|
||||
start_backup(service.get_id(), BackupReason.AUTO)
|
||||
|
||||
|
||||
@huey.periodic_task(validate_datetime=validate_datetime)
|
||||
|
|
Loading…
Reference in a new issue