Download Report via API gives partial reports

We use the Meeting Report API to download the attendance report for a given meeting ID.

https://api.zoom.us/v2/report/meetings/${meetingId}/participants?page_size=300

One problem we have noticed is that if we call this API immediately after the meeting has ended, we sometimes receive a partially generated report. However, if we make the same API call a few minutes later, we receive a complete report.

We tried adding a delay of 5 minutes, but we are still getting issues every now and then with report API.

Currently, there is no field in the response that can indicate whether the report is fully generated.

This lack of information creates a problem on our side in tracking attendance accurately.

How do we resolve this?