Actions
Issue #1655
closedpulp task workers connect to mongo before forking
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
When celery task workers start up, the connect to mongo before forking off the process that actually works tasks. I've isolated the current known locations where the forked workers connect to mongo and wrapped them with a context manager to suppress them[0], but the initial connection(s) that happen(s) before the worker is still not found.
My debugging method used to find the post-fork connections was to rpdb.set_trace()
immediately after pymongo raises the connect before fork warning; a similar method may be helpful in finding connections created pre-fork.
Related issues
Actions