Skip to content

Commit

Permalink
[resotocore][fix] small fixes (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Jan 19, 2024
1 parent c83481c commit 04ded94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions resotocore/resotocore/task/task_handler.py
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion resotocore/resotocore/web/accesslog.py
Expand Up @@ -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):
Expand Down

0 comments on commit 04ded94

Please sign in to comment.