Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Prevent marking licenses as processed when rate limit is exceeded
This change ensures that licenses resulting in a `RateLimitExceeded` status are not added to the `processedLicenses` file. - Added a check in the `checkGame` function to detect if any bot encounters a `RateLimitExceeded` status. - If a rate limit is detected, the license is not marked as processed, allowing it to be retried in the next run. - Logs an error and sends a webhook notification when a rate limit is encountered. - Licenses without rate limit issues are processed and marked as completed as usual. This prevents premature marking of licenses as processed when ASF is unable to handle them due to rate limits, ensuring they are retried in subsequent runs.
- Loading branch information