Harbor Task Queue Backed Up

HarborTaskQueueBackedUp #

Meaning #

The Harbor task queue has more than 100 pending tasks for 30 minutes. Tasks such as image replication, garbage collection, or scan jobs are not being processed.

Impact #

Image replication to or from remote registries is delayed. Vulnerability scans and garbage collection are not completing in a timely manner.

Diagnosis #

Check Harbor task status in the UI under Administration and then Tasks, or via the API:

curl -s -u admin:password https://<harbor-url>/api/v2.0/statistics

Check Harbor core logs for task processing errors:

kubectl logs -n goharbor -l component=core --tail=100 | grep -i task

Check job service pods:

kubectl get pods -n goharbor -l component=jobervice
kubectl logs -n goharbor -l component=jobervice --tail=100

Mitigation #

Cancel stuck tasks via the Harbor UI or API. If the queue consistently backs up, consider increasing task concurrency in the Harbor configuration.

If replication tasks are stuck, check connectivity to the remote registries.