From faed9cd66ee170b34e06ea89f1f94ed780121247 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Tue, 24 Jun 2025 13:45:58 +0200 Subject: [PATCH] remove description from schedulespec Signed-off-by: Marc 'risson' Schmitt --- authentik/lib/sync/outgoing/models.py | 1 - authentik/outposts/models.py | 4 ---- authentik/sources/kerberos/models.py | 2 -- authentik/sources/ldap/models.py | 2 -- authentik/sources/plex/models.py | 1 - authentik/tasks/schedules/api.py | 4 ---- authentik/tasks/schedules/lib.py | 2 -- 7 files changed, 16 deletions(-) diff --git a/authentik/lib/sync/outgoing/models.py b/authentik/lib/sync/outgoing/models.py index c1371d6f4f..6b9091ecb2 100644 --- a/authentik/lib/sync/outgoing/models.py +++ b/authentik/lib/sync/outgoing/models.py @@ -83,6 +83,5 @@ class OutgoingSyncProvider(ScheduledModel, Model): }, send_on_save=True, crontab=f"{fqdn_rand(self.pk)} */4 * * *", - description=_(f"Run full sync for {self._meta.verbose_name}"), ), ] diff --git a/authentik/outposts/models.py b/authentik/outposts/models.py index a0b6a513dc..77105def75 100644 --- a/authentik/outposts/models.py +++ b/authentik/outposts/models.py @@ -173,7 +173,6 @@ class OutpostServiceConnection(ScheduledModel, models.Model): uid=self.pk, args=(self.pk,), crontab="3-59/15 * * * *", - description=_(f"Update cached state of service connection {self.name}"), ), ] @@ -326,9 +325,6 @@ class Outpost(ScheduledModel, SerializerModel, ManagedModel): args=(self.pk,), kwargs={"action": "up", "from_cache": False}, crontab=f"{fqdn_rand('outpost_controller')} */4 * * *", - description=_( - f"Create/update/monitor/delete the deployment for the {self.name} outpost" - ), ), ] diff --git a/authentik/sources/kerberos/models.py b/authentik/sources/kerberos/models.py index 1b668ec9fc..d12c2034d2 100644 --- a/authentik/sources/kerberos/models.py +++ b/authentik/sources/kerberos/models.py @@ -148,14 +148,12 @@ class KerberosSource(ScheduledModel, Source): uid=self.pk, args=(self.pk,), crontab=f"{fqdn_rand('kerberos_sync/' + str(self.pk))} */2 * * *", - description=_(f"Sync Kerberos source '{self.name}'"), ), ScheduleSpec( actor=kerberos_connectivity_check, uid=self.pk, args=(self.pk,), crontab=f"{fqdn_rand('kerberos_connectivity_check/' + str(self.pk))} * * * *", - description=_(f"Check connectivity for Kerberos source '{self.name}'"), ), ] diff --git a/authentik/sources/ldap/models.py b/authentik/sources/ldap/models.py index 9c94ea26cf..63ec041771 100644 --- a/authentik/sources/ldap/models.py +++ b/authentik/sources/ldap/models.py @@ -172,14 +172,12 @@ class LDAPSource(ScheduledModel, Source): uid=self.pk, args=(self.pk,), crontab=f"{fqdn_rand('ldap_sync/' + str(self.pk))} */2 * * *", - description=_(f"Sync LDAP source '{self.name}'"), ), ScheduleSpec( actor=ldap_connectivity_check, uid=self.pk, args=(self.pk,), crontab=f"{fqdn_rand('ldap_connectivity_check/' + str(self.pk))} * * * *", - description=_(f"Check connectivity for LDAP source '{self.name}'"), ), ] diff --git a/authentik/sources/plex/models.py b/authentik/sources/plex/models.py index db5c7ae12f..f302e3d7e0 100644 --- a/authentik/sources/plex/models.py +++ b/authentik/sources/plex/models.py @@ -85,7 +85,6 @@ class PlexSource(ScheduledModel, Source): uid=self.pk, args=(self.pk,), crontab=f"{fqdn_rand(self.pk)} */3 * * *", - description=_(f"Check the token validity for the Plex source '{self.name}'"), ), ] diff --git a/authentik/tasks/schedules/api.py b/authentik/tasks/schedules/api.py index 2d7cef0bb7..42a7e03d46 100644 --- a/authentik/tasks/schedules/api.py +++ b/authentik/tasks/schedules/api.py @@ -48,10 +48,6 @@ class ScheduleSerializer(ModelSerializer): ) def get_description(self, instance: Schedule) -> str | None: - if instance.rel_obj: - for spec in instance.rel_obj.schedule_specs: - if instance.uid == spec.get_uid(): - return spec.description try: actor: Actor = get_broker().get_actor(instance.actor_name) except ActorNotFound: diff --git a/authentik/tasks/schedules/lib.py b/authentik/tasks/schedules/lib.py index 88d8460829..56787a86fe 100644 --- a/authentik/tasks/schedules/lib.py +++ b/authentik/tasks/schedules/lib.py @@ -22,8 +22,6 @@ class ScheduleSpec: rel_obj: Any | None = None - description: Any | str | None = None - send_on_save: bool = False send_on_startup: bool = False