Tootfinder

Opt-in global Mastodon full text search. Join the index!

@hynek@mastodon.social
2024-01-31 06:24:43

If you ever wanted to retry a single function/method call without any loops or decorators, check out stamina 24.2.0: #Python

@drahardja@sfba.social
2024-02-11 19:51:57

@… gram dot social’s feed is now incompatible with Mona.app ☹️ is this a pixelfed change?

Click to Retry
Mona expects JSON, but the server "gram.social" feeds it something else, likely an HTML :(
@piger@mastodon.social
2024-02-18 14:07:57

sometimes the right answer is to slap a retry on it
#systemd

@risottobias@tech.lgbt
2024-04-13 12:21:10

what is the typical design process for multiple token buckets?
e.g. if you have a bunch of go routines that:
listen to new domain registrations ->
check for IP token bucket (or rough /30 bucket?) -> if rate limited, stack in list of things to do in that prefix?? send to disk?
check for ASN token bucket - if cidr range is unknown, send to ASN querying and sleep(?)
ASN querying go routine -> rate limited to a request every 8 hours (100/month), or every 2-ish hours (500/month) - cached once known
when ASN becomes unblocked -> /now/ you can query the domain
(this also applies to queue design in general, when the thing you're queuing for might take a long while to dequeue in breadth first search, or if you have multiple rate limits to respect)
e.g., if I have it run an insert into "asn_lookups_resume_domains" for the ASN job to lookup, then resume/retry the domain jobs
or if it's completely blocking
or if it's just n-workers such that probably some prefixes are unblocked

@gfriend@mas.to
2024-03-06 18:09:51

An evocative view of the matters we tend to discuss here in much more "practical" and mundane ways. (Transformation requires retry as much as plans.)

@mcdanlj@social.makerforums.info
2024-02-01 15:37:14

There must be lots of people upgrading Mastodon right now... I got a failed build with a 503 Service Unavailable from the docker registry. 😎
(Succeeded on retry...)

@benke@social.linux.pizza
2024-02-07 07:51:42

TIL that there's retry() helper in #Laravel :ablobsmile:
laravel.com/docs/10.x/helpers#