Closed Bug 914796 Opened 12 years ago Closed 12 years ago

make subprocess async in slaveapi

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: bhearsum)

Details

Attachments

(1 file)

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.
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)
Attachment #802994 - Flags: review?(jhopkins) → review+
Attachment #802994 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: Tools → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: