Change behavior of __init__ of Job class when restoring cache files

This commit is contained in:
Théophile Diot 2024-03-12 20:32:35 +00:00
parent 7272fe95be
commit 70af4ac15f
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -47,7 +47,8 @@ class Job:
if not deprecated:
with LOCK:
is_scheduler_first_start = self.db.is_scheduler_first_start()
self.restore_cache(manual=is_scheduler_first_start)
if not is_scheduler_first_start:
self.restore_cache(manual=False)
def restore_cache(self, *, job_name: str = "", plugin_id: str = "", manual: bool = True) -> bool:
"""Restore job cache files from database."""