try to remove the handle

This commit is contained in:
Inex Code 2024-02-23 20:44:35 +03:00
parent 3965203d28
commit 5d385431e3
1 changed files with 1 additions and 3 deletions

View File

@ -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)