The last analysis generated an activity, but no background task

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube enterprise edition 9.9

  • how is SonarQube deployed: zip, Docker, Helm
    zip

  • what are you trying to achieve
    Normal analysis of background tasks。

  • what have you tried so far to achieve this
    I checked the activity,background task, and database。
    In the snapshots table in the database, the status of an abnormal activity is L, and the status of a normal activity is P。

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!



Hi,

Each project background task represents the server-side processing of an analysis report. But there’s another way your project metrics - and Quality Gate status - can change. If you mark an issue False Positive or Won’t Fix, then issue counts and Quality Gate status will be updated right away. And I believe that’s what you’re seeing.

Does that help?

 
Ann

Hi Ann ,

Thanks for your reply!
Maybe I didn't describe it clearly.

The last analysis of the project on June 21, 2023, at 4:45pm, had an activity record, but no corresponding background task. Check this analysis with the snapshots table in the database, which shows a status value of L.

I don’t know why there is no background task in this analysis, and whether there is a log to check this problem.

Hi,

So your CI shows that a job ran at 4:45p on June 21?

 
Ann

We have the same issue in our CI.
master branch analysis is in a project Activity, but there is no in Background tasks:
image

As I understand, every analysys should be present in the Background tasks, and I have no idea why I can’t see all analysys there?

Hi @yevhenhnes,

To be clear, you’re saying that the 11:28 AM activity entry is not reflected in your list of background tasks.

When someone changes an issue resolution (e.g. marks an issue false positive) that triggers a metrics and Quality Gate recalculation. I’m struggling to recall where that does/doesn’t show up. I know there are some inconsistencies around that, and I think it could be the explanation here.

 
HTH,
Ann

Hi, @ganncamp , thanks for the reply.
Yes, 11:28 AM is not in Background Tasks, there was manual resolution for the issue.