def METHOD_NAME(sender, **kwargs):
    gs = GlobalSettings()
    if not gs.settings.update_check_enabled:
        return
    if (
        not gs.settings.update_check_last
        or now() - gs.settings.update_check_last > dt.timedelta(hours=23)
    ):
        update_check.apply_async()