When 2 reports for the same project are in the queue, it may happens that the first analysis delete snapshots of the second analysis.
To prevent this, when getting the next report to process, we check if the given snapshot ID exists. If it does not exist:
- 2 messages must be logged:
- DEBUG: The snapshot ID #xxxx provided by the report #xxxx does not exist anymore.
- INFO: Processing of report #xxxx is canceled because it was submitted while another report of the same project was already being processed.
- the report status must be set to "CANCELED"