mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Change behavior of __init__ of Job class when restoring cache files
This commit is contained in:
parent
7272fe95be
commit
70af4ac15f
1 changed files with 2 additions and 1 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue