You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this supposed to be implemented in the WakatimeRelayMiddleware where it sends the heartbeat to wakatime api? Or is there a separate importing mechanism that I am missing out?
Also, we should stop retrying after a certain number of times. What would be the best number for retrying attempts? Should there be a config for that?
Hi @Zubayer204, thanks for jumping onto this. The retrial would be implemented as part of the WakaTime import mechanism - not to be confused with the relating, which is "opposite" direction.
But now that I think about it, to be honest, I think I'd want to implement this myself. Nit because I wouldn't trust your skills or something, but because I'd find it interesting to dive deeper into that topic.
Generally, you did everything just right by looking for the help wanted label.
Hope you didn't put too much work into this yet! Sorry.
Proper rate limiting middlewares (including caddy-ratelimit) will return a
Retry-After
header alongside429
requests.The WakaTime heartbeats import mechanism should respect this and retry the request instead of failing.
The text was updated successfully, but these errors were encountered: