SONAR-5624 clean analysis report tasks to pending when server is starting and truncate when upgrading