harbor/make/migrations/postgresql/0051_2.2.1_schema.up.sql
Wenkai Yin 8b1817be0f Fix the consume too much CPU issue
1. Update execution status during the upgrade
2. Refine the execution sweeper

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2021-03-17 13:34:24 +08:00

4 lines
152 B
SQL

/*fixes #14358*/
UPDATE execution SET status='Success' WHERE status='Succeed';
CREATE INDEX IF NOT EXISTS task_execution_id_idx ON task (execution_id);