Closed patrick-codaio closed 2 months ago
LGTM. Not clear how as a Pack maker I'd use this information, but doesn't hurt!
I was thinking a bit more about this overnight, and one additional detail I would like to include is the number of retries, with the array of error codes from each failure.
The main benefit would be a pack can use that info to figure out how aggressively it should try and make sure the attempts succeed.
For example Gmail fetches 200 messages in a single pass by default. If a failure happens and the pack is retrying, I might want to back off to 20 messages. Only if that also fails I want to back off to a single message. However, that is only possible if the pack knows about the retry count and the failures from each of them. Right now I will have to go all way to the extreme position of fetch a single message because the pack doesn't know anything better.
However, I wouldn't block this PR on it. I would love to get it merged so I can start leveraging it
Do we want to start by exposing this data only to the set of whitelisted packs so that random third parties don't start using it while we are working on it?