diff --git a/resotocore/resotocore/task/task_handler.py b/resotocore/resotocore/task/task_handler.py index 36fabb9cdb..58a0a27308 100644 --- a/resotocore/resotocore/task/task_handler.py +++ b/resotocore/resotocore/task/task_handler.py @@ -253,8 +253,9 @@ async def start(self) -> TaskHandlerService: log.debug("TaskHandlerService is starting up!") # load job descriptions from database - db_jobs = [job async for job in self.job_db.all()] - self.task_descriptions = [*self.task_descriptions, *db_jobs] + if not self.config.multi_tenant_setup: + db_jobs = [job async for job in self.job_db.all()] + self.task_descriptions = [*self.task_descriptions, *db_jobs] # load and restore all tasks if not self.config.args.ignore_interrupted_tasks and not self.config.multi_tenant_setup: diff --git a/resotocore/resotocore/web/accesslog.py b/resotocore/resotocore/web/accesslog.py index 75830bbe34..e0b8b4d57d 100644 --- a/resotocore/resotocore/web/accesslog.py +++ b/resotocore/resotocore/web/accesslog.py @@ -2,7 +2,7 @@ from aiohttp.web_request import BaseRequest from aiohttp.web_response import StreamResponse -RoutesToIgnore = {"/system/ready", "/system/ping"} +RoutesToIgnore = {"/system/ready", "/system/ping", "/metrics"} class ResotoAccessLogger(AccessLogger):