Skip to content

unusedUrlsCleanupTask from #220138 is not scheduled #231775

@flyingflo

Description

@flyingflo

Kibana version:
9.1.2

Elasticsearch version:
9.1.2

Server OS version:
Rocky Linux 9

Original install method (e.g. download page, yum, from source, etc.):
kibana/kibana:9.1.2 from docker hub

Describe the bug:
I'm trying the unused URL cleanup feature added recently with #220138
with the config

share:
  url_expiration.enabled: true # controls whether the task is enabled
  url_expiration.duration: '42d' # controls the expiration threshold
  url_expiration.check_interval: '5m' # controls how often the task runs
  url_expiration.url_limit: 10000 # controls how many SO should be fetched per task run

logging:
  loggers:
      - name: plugins.taskManager
        appenders: [console]
        level: debug                        

I have a lot of old urls. Every
POST kbn:/internal/unused_urls_task/run

{
  "message": "Unused URLs cleanup task has finished.",
  "deletedCount": 10000
}

reduces the number reported in the Saved Objects page.

However, no periodic automatic reduction occurs.

Steps to reproduce:

  1. Have a lot of old enough urls or reduce the duration.
  2. Configure as above
  3. Wait for the job to run

Expected behavior:
The task runs every five minutes and reduces the number of old URLs.
With the configured debug logging, I see a lot of output. Every task is reported.
Thus, I would expect to see reports from unusedUrlsCleanupTask.

Probably it is stuck with the default interval of 7 days? I didn't wait that long.

Provide logs and/or server output (if relevant):
GET /api/task_manager/_health lists the Task as idle
somewhere under stats.workload..

"unusedUrlsCleanupTask": {
            "count": 1,
            "cost": 2,
            "status": {
              "idle": 1
            }
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:SharingURLsShort URLs and Share URL featuresTeam:SharedUXPlatform AppEx-SharedUX (formerly Global Experience) t//bugFixes for quality problems that affect the customer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions