This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Oren Milman, Prof Plum, davin, pitrou, tlxxzj
Date 2017-10-08.19:55:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507492526.76.0.213398074469.issue31092@psf.upfronthosting.co.za>
In-reply-to
Content
@Prof Plum

> When I call pool.apply_async() I expect it only to return when the worker process has been started and finished it's initialization process

Well... it's called *async* for a reason, so I'm not sure why the behaviour would be partially synchronous.

@Oren

> Should we fix this?

I'm not sure how.  In mp.Pool we don't want to keep references to input objects longer than necessary.

> Or is it the responsibility of the user to not destroy shared objects too soon?  (In that case, maybe we should mention it in the docs?)

Yes to both questions, IMO.

(note: changing title to better reflect issue)
History
Date User Action Args
2017-10-08 19:55:26pitrousetrecipients: + pitrou, davin, Oren Milman, Prof Plum, tlxxzj
2017-10-08 19:55:26pitrousetmessageid: <1507492526.76.0.213398074469.issue31092@psf.upfronthosting.co.za>
2017-10-08 19:55:26pitroulinkissue31092 messages
2017-10-08 19:55:26pitroucreate