What type of PR is this?

/kind task

What does this PR do / why do we need it:

Move finished or failed queries to finished query states and not fetching these query states when submitting new queries

Which issue(s) this PR fixes:

Fixes #I3DV3A:The dealing time of submit query when AA enabled increases significantly:The dealing time of submit query when AA enabled increases significantly

Special notes for your reviewers: