Closed scriptnull closed 6 years ago
Rate limiting and cache implementation are done.
API now returns back the following responses for GET /badges
API
All reponses will contain the payload equivalent to
Along with that, the a status
object is also returned back with varying status codes.
status
: already processing - This is returned if the remote is being processed currently by one of the workers.status
: already queued for processing - This is returned if the remote is currently residing in the queuestatus
: successfully queued for processing - This is returned if the remote is successfully queued.
We need to rate limit the requests to the workers by tracking if a repo is already being processed.
Also, we need to cache the payload data for each git repositories.