request_with_retry: retry a bit harder, for a bit longer #4569
No reviewers
Labels
No labels
backlog
bug
Closed As
Dropped
Closed As
Duplicate
Closed As
Fixed
Closed As
Insufficient data
Closed As
Invalid
deprecation
discussion
doc
easyfix
feature
fedora-infra
groomed
NEEDINFO
no_qe
Priority
High
Priority
Low
Priority
Normal
rhel6-eol
scheduler
tech-debt
testing-basic
testing-custom
testing-done
testing-ready
usability
wishful
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
koji/koji!4569
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "adamwill/koji:retry-harder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm no mathematrician, but IIUC, retry_factor 0.3 and retries 3
will sleep 0.15, 0.3, 0.6 seconds between tries, then give up.
That's...really not very long to wait to survive some kind of
transient borkage on the server.
With retry factor 1 and retries 5, I believe we'll sleep 0.5, 1,
2, 4, 8 seconds between tries, which feels like it gives us a bit
better chance of winning. See:
https://urllib3.readthedocs.io/en/stable/reference/urllib3.util.html#urllib3.util.Retry
Signed-off-by: Adam Williamson awilliam@redhat.com
@tkopecek , since you introduced this.
I came to this via https://github.com/fedora-infra/bodhi/pull/6103 . We noticed several Fedora CI failures that were due to
bodhi updates downloadfailing to get all the packages. I wrote that PR but then thought, meh, it's just a wrapper aroundkoji download-build, why not just put the retries in Koji? So I came to Koji and found out that retries are already here, but...maybe this would make them more likely to work?It was originally meant to solve only network hiccups, so second try should +- succeed. I've not seen any errors since, but I think it is ok to raise the defaults - here we would be at 0 + 2 + 4 + 6 + 8 = 30 seconds at max. @mikem ?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.