try to remove the handle

This commit is contained in:
Inex Code 2024-02-23 20:44:35 +03:00
parent 3965203d28
commit 5d385431e3

View file

@ -80,9 +80,7 @@ def do_autobackup():
""" """
time = datetime.utcnow().replace(tzinfo=timezone.utc) time = datetime.utcnow().replace(tzinfo=timezone.utc)
for service in Backups.services_to_back_up(time): for service in Backups.services_to_back_up(time):
handle = start_backup(service.get_id(), BackupReason.AUTO) start_backup(service.get_id(), BackupReason.AUTO)
# To be on safe side, we do not do it in parallel
handle(blocking=True)
@huey.periodic_task(validate_datetime=validate_datetime) @huey.periodic_task(validate_datetime=validate_datetime)