Closed
Bug 914796
Opened 12 years ago
Closed 12 years ago
make subprocess async in slaveapi
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bhearsum, Assigned: bhearsum)
Details
Attachments
(1 file)
18.94 KB,
patch
|
jhopkins
:
review+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
I noticed some surprising delays in requests while testing some stuff in slaveapi today. After some googling, it looks like subprocess isn't async'ed by the version of Gevent that we use. Looks like https://github.com/bombela/gevent_subprocess might help with that.
Assignee | ||
Comment 1•12 years ago
|
||
Turns out that subprocess were indeed not async. With this patch applied the same set of requests all return immediately - even though slaveapi is running subprocess (in the background now, yay!). This also seems to fix bug 913615 because DNS requests don't get shoved off to the side while a subprocess is running.
Mostly I'm relying on the gevent_subprocess module here, but I had to do the patching of subprocess on my own because it doesn't provide a helper to do so.
Attachment #802994 -
Flags: review?(jhopkins)
Updated•12 years ago
|
Attachment #802994 -
Flags: review?(jhopkins) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #802994 -
Flags: checked-in+
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•