EACFreddy: thought about it. is there any other way/
EACFreddy
reactor.callInThread maybe, but I never used that before
rajesh
EACFreddy: i'll use deferToThread. thanks.
ayaka has quit
ayaka joined the channel
rthille-ciena joined the channel
teratorn
rajesh: what does the blocking method do?
rajesh
teratorn: makes a request to another service.
teratorn
rajesh: why is it blocking, then?
rajesh
it's another service provider whose api i call. there can be many requests to that provider lining up on my side. so i'd like to trigger them as i enqueue them, and i don't care about the results of the operations on their end.
teratorn
deferToThread may not be sufficient for that
rajesh
why not?
teratorn
a) if your API library is not thread-safe you don't have control over it being used from a single thread b) it's not going to queue them up one-by-one if that is what you need
just having your own dedicated thread and a queue might be better?
rajesh
teratorn: yes of course, a separate queue and a thread per request to the other service.
i imagine i only need manage the append/pop of the queue elements.
teratorn
shouldn't be too hard... twisted isn't magic, it's just python code
rajesh
yeah, no i don't have a problem with that.
warner joined the channel
warner
is anyone else seeing this?: travis-ci OS-X builds of a project that depends upon twisted are failing as they try to install "incremental>=16.10.1", claiming "Couldn't find index page for 'incremental' (maybe misspelled?)"
the travis linux builds are fine, a local OS-X build is fine
and the build appears to be able to find other dependencies without problems, so I'm not convinced it's related to the TLS<=1.2 brownouts that PyPI is running in preparation for disabling older TLS entirely in a week or two
'brownouts', that an interesting way to handle deprecation for SaaS stuff :)
warner
yeah. I kinda like it, although apparently some versions of pip don't report the error in the most helpful manner
meejah
i guess better "some" bug-reports from users rather than all of a sudden a bunch can't make anything work
(i kinda like it too :)
itamar has quit
itamar joined the channel
slav0nic has quit
njs
warner: it's not documented well, but in addition to the official brownout ("all requests during this time period will fail"), there's also a probabilistic brownout happening ("x% of requests will fail randomly"), so it could potentially be that
warner: certainly if you're on MacOS and you don't have either the very latest pip (9.0.3) or the very latest MacOS (10.13), you need to upgrade one or the other
meejah
njs: does Travis say what MacOS version they're running?
warner checks
njs
meejah: probably somewhere, but I don't know off the top of my head
warner
their docs say 10.12.6
there's one beta image available that has 10.13, but all the rest are 10.12 or older
but it looks like we've got pip-9.0.3
one build just passed, so it's not consistent
(I suppose one way to figure out if it's the brownout or not is to just wait two weeks :)
is there any "all requests that start with the letter 'i' will fail" aspect?
njs
warner: you should probably ask in #pypa-dev, they're pretty on top of this stuff right now for obvious reasons :-)
warner
I can't figure out why it fails when it gets to Incremental, but appears to get good responses up until just a moment earlier, on multiple builds