mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
scheduler - fix parent setter call
This commit is contained in:
parent
26a1ef6898
commit
f3081e3c34
2 changed files with 4 additions and 2 deletions
|
|
@ -92,6 +92,7 @@ class Database:
|
|||
self.__sql_engine = create_engine(
|
||||
sqlalchemy_string,
|
||||
future=True,
|
||||
pool_pre_ping=True
|
||||
)
|
||||
except ArgumentError:
|
||||
self.__logger.error(f"Invalid database URI: {sqlalchemy_string}")
|
||||
|
|
@ -135,6 +136,7 @@ class Database:
|
|||
self.__sql_engine = create_engine(
|
||||
sqlalchemy_string,
|
||||
future=True,
|
||||
pool_pre_ping=True
|
||||
)
|
||||
if "Unknown table" in str(e):
|
||||
not_connected = False
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ for deps_path in [
|
|||
from Database import Database # type: ignore
|
||||
from logger import setup_logger # type: ignore
|
||||
from ApiCaller import ApiCaller # type: ignore
|
||||
|
||||
from API import API # type: ignore
|
||||
|
||||
class JobScheduler(ApiCaller):
|
||||
def __init__(
|
||||
|
|
@ -69,7 +69,7 @@ class JobScheduler(ApiCaller):
|
|||
super().auto_setup(bw_integration=self.__integration)
|
||||
|
||||
def update_instances(self):
|
||||
super().apis(self.__get_apis())
|
||||
super(JobScheduler, type(self)).apis.fset(self, self.__get_apis())
|
||||
|
||||
def __get_apis(self):
|
||||
apis = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue