From af56ce3d787043576510bdd481a3ea24199f190b Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 18:36:56 +0100 Subject: [PATCH] core: fix worker beat toggle inverted (cherry-pick #7508) (#7509) core: fix worker beat toggle inverted (#7508) Signed-off-by: Jens Langhammer Co-authored-by: Jens L --- authentik/core/management/commands/worker.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/authentik/core/management/commands/worker.py b/authentik/core/management/commands/worker.py index b22187efe..f85c36cc9 100644 --- a/authentik/core/management/commands/worker.py +++ b/authentik/core/management/commands/worker.py @@ -17,9 +17,15 @@ class Command(BaseCommand): """Run worker""" def add_arguments(self, parser): - parser.add_argument("-b", "--beat", action="store_true") + parser.add_argument( + "-b", + "--beat", + action="store_false", + help="When set, this worker will _not_ run Beat (scheduled) tasks", + ) def handle(self, **options): + LOGGER.debug("Celery options", **options) close_old_connections() if CONFIG.get_bool("remote_debug"): import debugpy