def METHOD_NAME():
    """Check build tags and sign those we missed."""
    db_factory = transactional_session_maker()
    older_than = datetime.utcnow() - timedelta(days=config.get('check_signed_builds_delay'))
    with db_factory() as session:
        updates = models.Update.query.filter(
            models.Update.status == models.UpdateStatus.pending
        ).filter(
            models.Update.release_id == models.Release.id
        ).filter(
            models.Release.state.in_([
                models.ReleaseState.current,
                models.ReleaseState.pending,
                models.ReleaseState.frozen,
            ])
        ).all()
        if len(updates) == 0:
            log.debug('No stuck Updates found')
            return
        kc = buildsys.get_session()
        stuck_builds = []
        overlooked_builds = []
        for update in updates:
            # Let Bodhi have its times
            if update.date_submitted >= older_than:
                continue
            builds = update.builds
            # Clean Updates with no builds
            if len(builds) == 0:
                log.debug(f'Obsoleting empty update {update.alias}')
                update.obsolete(session)
                session.flush()
                continue
            pending_signing_tag = update.release.pending_signing_tag
            pending_testing_tag = update.release.pending_testing_tag
            for build in builds:
                if build.signed:
                    log.debug(f'{build.nvr} already marked as signed')
                    continue
                build_tags = [t['name'] for t in kc.listTags(build=build.nvr)]
                if pending_signing_tag not in build_tags and pending_testing_tag in build_tags:
                    # Our composer missed the message that the build got signed
                    log.debug(f'Changing signed status of {build.nvr}')
                    build.signed = True
                elif pending_signing_tag in build_tags and pending_testing_tag not in build_tags:
                    # autosign missed the message that the build is waiting to be signed
                    log.debug(f'{build.nvr} is stuck waiting to be signed, let\'s try again')
                    stuck_builds.append((build.nvr, pending_signing_tag))
                elif (pending_signing_tag not in build_tags
                      and pending_testing_tag not in build_tags):
                    # this means that an update has been created but we never tagged the build
                    # as pending-signing
                    log.debug(f'Oh, no! We\'ve never sent {build.nvr} for signing, let\'s fix it')
                    overlooked_builds.append((build.nvr, pending_signing_tag))
            session.flush()
        if stuck_builds:
            kc.multicall = True
            for b, t in stuck_builds:
                kc.untagBuild(t, b, force=True)
            kc.multiCall()
            for b, t in stuck_builds:
                kc.tagBuild(t, b, force=True)
            kc.multiCall()
        if overlooked_builds:
            kc.multicall = True
            for b, t in overlooked_builds:
                kc.tagBuild(t, b, force=True)
            kc.multiCall()