mirror of https://github.com/goharbor/harbor.git
Updated Harbor FAQs (markdown)
parent
4d5a3df88f
commit
d906c603be
|
@ -392,3 +392,18 @@ CREATE INDEX IF NOT EXISTS idx_artifact_project_id ON artifact (project_id);
|
|||
-- remove index has drawback
|
||||
DROP INDEX IF EXISTS idx_audit_log_op_time;
|
||||
```
|
||||
## Job Service
|
||||
1. There are too many jobs in pending/running state, how to clean it?
|
||||
```
|
||||
1. Stop all the jobs with a schedule, such as tag retention, image scan and GC job.
|
||||
2. Mark pending task into Error
|
||||
> docker exec -it harbor-db bash
|
||||
> psql -U postgres -d registry
|
||||
> update task set status = 'Error', status_code = 3 where status in ('Pending', 'Running') and vendor_type = '<job_type>';
|
||||
> update execution set status = 'Stopped' where status = 'Running' and vendor_type = '<job type>';
|
||||
3. Backup the redis file to another directory and delete it, then restart Harbor
|
||||
> docker-compose down -v
|
||||
> cp -r /data/redis/* /data/redis_backup/
|
||||
> rm -rf /data/redis/*
|
||||
> docker-compose up -d
|
||||
```
|
Loading…
Reference in New Issue