Message211665
> Thanks Richard. The set_start_method() call will affect any process
> started from that time on? Is it possible to change idea at some point in
> the future?
You can use different start methods in the same program by creating different contexts:
spawn_ctx = multiprocessing.get_context('spawn')
manager = spawn_ctx.Manager()
> Anyway, I cannot upgrade right now.
>
> Would it be an option to subclass BaseProxy, override the _after_fork
> method so it will do nothing upon forking?
That would probably mean that proxy objects could not be inherited by *any* sub-process. (You would then need to use some other way of sharing access between processes and to manage the lifetime of the shared object.) |
|
Date |
User |
Action |
Args |
2014-02-19 22:13:15 | sbt | set | recipients:
+ sbt, mythsmith |
2014-02-19 22:13:15 | sbt | set | messageid: <1392847995.25.0.236573506621.issue20660@psf.upfronthosting.co.za> |
2014-02-19 22:13:15 | sbt | link | issue20660 messages |
2014-02-19 22:13:14 | sbt | create | |
|