From 5afe88a6056d026449e39ac06fa151bc5609cb40 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 4 Jul 2021 13:48:43 +0200 Subject: [PATCH] outposts: fix empty message when docker outpost controller has changed nothing Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/docker.py | 1 + authentik/outposts/settings.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/outposts/controllers/docker.py b/authentik/outposts/controllers/docker.py index f5544311a..c233073db 100644 --- a/authentik/outposts/controllers/docker.py +++ b/authentik/outposts/controllers/docker.py @@ -169,6 +169,7 @@ class DockerController(BaseController): self.logger.info("Container is not running, restarting...") container.start() return None + self.logger.info("Container is running") return None except DockerException as exc: raise ControllerException(str(exc)) from exc diff --git a/authentik/outposts/settings.py b/authentik/outposts/settings.py index 617274295..bd0e9a94e 100644 --- a/authentik/outposts/settings.py +++ b/authentik/outposts/settings.py @@ -9,7 +9,7 @@ CELERY_BEAT_SCHEDULE = { }, "outposts_service_connection_check": { "task": "authentik.outposts.tasks.outpost_service_connection_monitor", - "schedule": crontab(minute="*/60"), + "schedule": crontab(minute="*/5"), "options": {"queue": "authentik_scheduled"}, }, "outpost_token_ensurer": {