[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-03-23 Thread Ask Solem
Ask Solem added the comment: Perhaps we could add a self._finally to the event loop itself? Like loop._ready, but a list of callbacks run_until_complete will call before returning? -- ___ Python tracker <https://bugs.python.org/issue36

[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-03-22 Thread Ask Solem
Ask Solem added the comment: Ah, so the extra call_soon means it needs a: [code] loop.run_until_complete(asyncio.sleep(0))``` [/code] before the self.assertTrue(it.finally_executed) to finish executing agen.close(). Why is create_task different? Does it execute an iteration

Release: Celery 4.0 (latentcall)

2016-11-08 Thread Ask Solem
ml=cHl0aG9uLWFubm91b mNlLWxpc3RAcHl0aG9uLm9yZw==) Thank you for your support, \-- [ Ask Solem - github.com/ask | twitter.com/asksol ] -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue9248] multiprocessing.pool: Proposal: waitforslot

2014-06-30 Thread Ask Solem
Ask Solem added the comment: This patch is quite dated now and I have fixed many bugs since. The feature is available in billiard and is working well but The code has diverged quite a lot from python trunk. I will be updating billiard to reflect the changes for Python 3.4 soon (billiard

[issue9592] Limitations in objects returned by multiprocessing Pool

2012-09-12 Thread Ask Solem
Ask Solem added the comment: I vote to close too as it's very hard to fix in a clean way. A big problem though is that there is a standard for defining exceptions, that also ensures that the exception is pickleable (always call Exception.__init__ with original args), that is not documented

ANN: Celery 3.0 (chiastic slide) released!

2012-07-07 Thread Ask Solem
and contributors! - http://celeryproject.org/ -- Ask Solem twitter.com/asksol | +44 (0)7713357179 signature.asc Description: Message signed with OpenPGP using GPGMail -- http://mail.python.org/mailman/listinfo/python-list

[issue10037] multiprocessing.pool processes started by worker handler stops working

2012-06-07 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: Well, I still don't know exactly why restarting the socket read made it work, but the patch solved an issue where newly started pool processes would be stuck in socket read forever (happening to maybe 1/500 new processes) This and a dozen

[issue10037] multiprocessing.pool processes started by worker handler stops working

2012-06-07 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: Later works, or just close it. I can open up a new issue to merge the improvements in billiard later. The execv stuff certainly won't go in by Py3.3. There has not been consensus that adding it is a good idea. (I also have the unit

[issue6407] multiprocessing Pool should allow custom task queue

2011-11-24 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: @swindmill, if you provide a doc/test patch then this can probably be merged. @pitrou, We could change it to `setup_queues`, though I don't think even changing the name of private methods is a good idea. It could simply be an alias

[issue8713] multiprocessing needs option to eschew fork() under Linux

2011-08-24 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: I have suspected that this may be necessary, not just merely useful, for some time, and issue6721 seems to verify that. In addition to adding the keyword arg to Process, it should also be added to Pool and Manager. Is anyone working

[issue6288] Update contextlib.nested docs in light of deprecation

2011-07-27 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: How would you replace the following functionality with the multiple with statement syntax: x = (A(), B(), C()) with nested(*x) as context: It seems to me that nested() is still useful for this particular use case

[issue11743] Rewrite PipeConnection and Connection in pure Python

2011-04-03 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: This is great! I always wondered if it was really necessary to use C for this. 10µs overhead should be worth it ;) I've read the patch, but not carefully. So far nothing jumps at me either. Cheers

[Ann] Celery 2.2 released!

2011-02-01 Thread Ask Solem Hoel
://groups.google.com/group/celery-users :IRC: #celery at irc.freenode.net. -- {Ask Solem | twitter.com/asksol }. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue10673] multiprocess.Process join method - timeout indistinguishable from success

2010-12-10 Thread Ask Solem
Ask Solem a...@opera.com added the comment: While it makes sense for `join` to raise an error on timeout, that could possibly break existing code, so I don't think that is an option. Adding a note in the documentation would be great. -- ___ Python

[issue10305] Cleanup up ResourceWarnings in multiprocessing

2010-11-04 Thread Ask Solem
Ask Solem a...@opera.com added the comment: ah, this is something I've seen as well, its part of a bug that I haven't created an issue for yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10305

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-03 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Since you can't specify the return code, `self.terminate` is less flexible than `sys.exit`. I think the original intent is clear here, the method is there for the parent to control the child. You are of course welcome to argue otherwise

[issue7292] Multiprocessing Joinable race condition?

2010-11-02 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7292 ___ ___ Python-bugs-list mailing list

[issue5930] Transient error in multiprocessing (test_number_of_objects)

2010-11-02 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5930 ___ ___ Python-bugs-list mailing list

[issue9733] Can't iterate over multiprocessing.managers.DictProxy

2010-11-02 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9733

[issue3876] multiprocessing does not compile on systems which do not define sem_timedwait

2010-11-02 Thread Ask Solem
Ask Solem a...@opera.com added the comment: What is the status of this issue? There are several platform listed here, which I unfortunately don't have access to. -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue9955] multiprocessing.Pipe segmentation fault when recv of unpicklable object

2010-11-02 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Can't reproduce on Python 2.7, but can indeed reproduce on 2.6. Issue fixed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9955

[issue10133] multiprocessing: conn_recv_string() broken error handling

2010-11-02 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10133 ___ ___ Python-bugs-list mailing list

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-02 Thread Ask Solem
Ask Solem a...@opera.com added the comment: It seems that Process.terminate is not meant to be used by the child, but only the parent. From the documentation: Note that the start(), join(), is_alive() and exit_code methods should only be called by the process that created the process

[issue5573] multiprocessing Pipe poll() and recv() semantics.

2010-11-02 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5573

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-11-02 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Pickling on put makes sense to me. I can't think of cases where this could break existing code either. I think this may also resolve issue 8323 -- stage: - unit test needed ___ Python tracker rep

[issue4999] multiprocessing.Queue does not order objects

2010-10-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Updated doc patch -- nosy: +asksol Added file: http://bugs.python.org/file19350/issue-4999.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4999

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-10-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: AFAICS the object will be pickled twice with this patch. See Modules/_multiprocessing/connection.h: connection_send_obj. -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-10-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: aha, no. I see now you use connection.send_bytes instead. Then I can't think of any issues with this patch, but I don't know why it was done this way in the first place. -- ___ Python tracker rep

[issue7200] multiprocessing deadlock on Mac OS X when queue collected before process terminates

2010-10-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Queue uses multiprocessing.util.Finalize, which uses weakrefs to track when the object is out of scope, so this is actually expected behavior. IMHO it is not a very good approach, but changing the API to use explicit close methods is a little late

[issue6407] multiprocessing Pool should allow custom task queue

2010-10-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Matthew, would you be willing to write tests + documentation for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6407

[issue7474] multiprocessing.managers.SyncManager managed object creation fails when started outside of invoked file

2010-10-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: I can't seem to reproduce this on trunk... -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7474

[issue5573] multiprocessing Pipe poll() and recv() semantics.

2010-10-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: I don't know about the socket internals, but I find the behavior acceptable. It may not be feasible to change it now anyway, as there may be people already depending on it (e.g. not handling errors occurring at poll

[issue10174] multiprocessing expects sys.stdout to have a fileno/close method.

2010-10-23 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Please add the traceback, I can't seem to find any obvious places where this would happen now. Also, what version are you currently using? I agree with the fileno, but I'd say close is a reasonable method to implement, especially for stdin/stdout

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-20 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10128

[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-19 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Is this on Windows? Does it work for you now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10128

[Ann] Celery 2.1 stable released

2010-10-08 Thread Ask Solem
://pypi.python.org/pypi/django-celery/2.1.0 -- {Ask Solem, +47 98435213 | twitter.com/asksol }. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue10037] multiprocessing.pool processes started by worker handler stops working

2010-10-06 Thread Ask Solem
New submission from Ask Solem a...@opera.com: While working on an autoscaling (yes, people call it that...) feature for Celery, I noticed that the processes created by the _handle_workers thread doesn't always work. I have reproduced this in general, by just using the maxtasksperchild

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-10-05 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Could you please reduce this to the shorted possible example that reproduces the problem? -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8028

[issue8094] Multiprocessing infinite loop

2010-10-05 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8094 ___ ___ Python-bugs-list mailing list

[issue8144] muliprocessing shutdown infinite loop

2010-10-05 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Did you finish the code to reproduce the problem? -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8144

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-22 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Maybe surprising but not so weird if you think about what happens behind the scenes. When you do x = man.list() x.append({}) You send an empty dict to the manager to be appended to x when do: x[0] {} you receive a local copy

[issue7707] multiprocess.Queue operations during import can lead to deadlocks

2010-09-22 Thread Ask Solem
Ask Solem a...@opera.com added the comment: I created a small doc patch for this (attached). -- keywords: +needs review, patch nosy: +asksol versions: +Python 3.1 -Python 2.6 Added file: http://bugs.python.org/file18967/multiprocessing-issue7707.patch

[issue9733] Can't iterate over multiprocessing.managers.DictProxy

2010-09-09 Thread Ask Solem
Ask Solem a...@opera.com added the comment: I expected I could iterate over a DictProxy as I do over a regular dict. DictProxy doesn't support iterkeys(), itervalues(), or iteritems() either. So while iter(d) could do iter(d.keys()) behind the scenes, it would mask the fact

[issue3125] test_multiprocessing causes test_ctypes to fail

2010-09-09 Thread Ask Solem
Ask Solem a...@opera.com added the comment: As no one has been able to confirm that this is still an issue, I'm closing it as out of date. The issue can be reopened if necessary. -- resolution: accepted - out of date status: open - closed ___ Python

[issue3111] multiprocessing ppc Debian/ ia64 Ubuntu compilation error

2010-09-09 Thread Ask Solem
Ask Solem a...@opera.com added the comment: As no one is able to confirm that this is still an issue, I'm closing it. It can be reopened if necessary. -- resolution: - out of date ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue3735] allow multiple threads to efficiently send the same requests to a processing.Pool without incurring duplicate processing

2010-08-31 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- resolution: - postponed stage: unit test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3735

[issue4892] Sending Connection-objects over multiprocessing connections fails

2010-08-31 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4892 ___ ___ Python-bugs-list mailing list

[issue3831] Multiprocessing: Expose underlying pipe in queues

2010-08-31 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3831 ___ ___ Python-bugs-list mailing list

[issue5501] Update multiprocessing docs re: freeze_support

2010-08-31 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5501 ___ ___ Python-bugs-list mailing list

[issue8534] multiprocessing not working from egg

2010-08-31 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- keywords: +needs review nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8534 ___ ___ Python

[issue3093] Namespace pollution from multiprocessing

2010-08-31 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3093 ___ ___ Python-bugs

[issue6407] multiprocessing Pool should allow custom task queue

2010-08-31 Thread Ask Solem
Ask Solem a...@opera.com added the comment: are there really any test/doc changes needed for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6407

[issue6407] multiprocessing Pool should allow custom task queue

2010-08-31 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- stage: needs patch - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6407 ___ ___ Python

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-27 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Does the problem make sense/do you have any ideas for an alternate solution? Well, I still haven't given up on the trackjobs patch. I changed it to use a single queue for both the acks and the result (see new patch attached: multiprocessing-tr

[issue5573] multiprocessing Pipe poll() and recv() semantics.

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5573 ___ ___ Python-bugs-list mailing list

[issue3125] test_multiprocessing causes test_ctypes to fail

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3125 ___ ___ Python-bugs-list mailing list

[issue3111] multiprocessing ppc Debian/ ia64 Ubuntu compilation error

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3111 ___ ___ Python-bugs-list mailing list

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6056 ___ ___ Python-bugs-list mailing list

[issue6362] multiprocessing: handling of errno after signals in sem_acquire()

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6362 ___ ___ Python-bugs-list mailing list

[issue6407] multiprocessing Pool should allow custom task queue

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6407 ___ ___ Python-bugs-list mailing list

[issue6417] multiprocessing Process examples: print and getppid

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6417 ___ ___ Python-bugs-list mailing list

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3518 ___ ___ Python-bugs-list mailing list

[issue6653] Potential memory leak in multiprocessing

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6653 ___ ___ Python-bugs-list mailing list

[issue7123] Multiprocess Process does not always exit when run from a thread.

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7123 ___ ___ Python-bugs-list mailing list

[issue7060] test_multiprocessing dictionary changed size errors and hang

2010-08-27 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7060 ___ ___ Python-bugs-list mailing list

[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2010-08-27 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Duplicate of 3518? -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5862 ___ ___ Python

[issue3735] allow multiple threads to efficiently send the same requests to a processing.Pool without incurring duplicate processing

2010-08-27 Thread Ask Solem
Ask Solem a...@opera.com added the comment: This is a nice feature, but it's also very specific and can be implemented by extending what's already there. Could you make a patch for this that applies to the py3k branch? If no one has the time for this, then we should probably just close

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-27 Thread Ask Solem
Ask Solem a...@opera.com added the comment: New patch attach (termination-trackjobs3.patch). Hmm, a few notes. I have a bunch of nitpicks, but those can wait for a later iteration. (Just one style nit: I noticed a few unneeded whitespace changes... please try not to do that, as it makes

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-27 Thread Ask Solem
Ask Solem a...@opera.com added the comment: - A worker removes a job from the queue and is killed before sending an ACK. Yeah, this may be a problem. I was thinking we could make sure the task is acked before child process shutdown. Kill -9 is then not safe, but do we really want

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-27 Thread Ask Solem
Ask Solem a...@opera.com added the comment: By the way, I'm also working on writing some simple benchmarks for the multiple queues approach, just to see if theres at all an overhead to worry about. -- ___ Python tracker rep...@bugs.python.org http

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-25 Thread Ask Solem
Ask Solem a...@opera.com added the comment: On closer look your patch is also ignoring SystemExit. I think it's beneficial to honor SystemExit, so a user could use this as a means to replace the current process with a new one. If we keep that behavior, the real problem here is that the result

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-24 Thread Ask Solem
Ask Solem a...@opera.com added the comment: This is related to our discussions at #9205 as well (http://bugs.python.org/issue9205), as the final patch there will also fix this issue. -- ___ Python tracker rep...@bugs.python.org http

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-20 Thread Ask Solem
Ask Solem a...@opera.com added the comment: @greg Been very busy lately, just had some time now to look at your patch. I'm very ambivalent about using one SimpleQueue per process. What is the reason for doing that? -- ___ Python tracker rep

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-25 Thread Ask Solem
Ask Solem a...@opera.com added the comment: A potential implementation is in termination.patch. Basically, try to shut down gracefully, but if you timeout, just give up and kill everything. You can't have a sensible default timeout, because the worker may be processing something important

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-21 Thread Ask Solem
Ask Solem a...@opera.com added the comment: At first glance, looks like there are a number of sites where you don't change the blocking calls to non-blocking calls (e.g. get()). Almost all of the get()s have the potential to be called when there is no possibility for them to terminate. I

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-21 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Btw, the current problem with termination3.patch seems to be that the MainProcess somehow appears in self._pool. I have no idea how it gets there. Maybe some unrelated issue that appears when forking that late in the tests

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-16 Thread Ask Solem
Ask Solem a...@opera.com added the comment: but if you make a blocking call such as in the following program, you'll get a hang Yeah, and for that we could use the same approach as for the maps. But, I've just implemented the accept callback approach, which should be superior. Maps/Apply

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-16 Thread Ask Solem
Changes by Ask Solem a...@opera.com: Added file: http://bugs.python.org/file18026/multiprocessing-tr...@82502-termination-trackjobs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-15 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Greg, Before I forget, looks like we also need to deal with the result from a worker being un-unpickleable: This is what my patch in bug 9244 does... Yep. Again, as things stand, once you've lost an worker, you've lost a task, and you can't

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-15 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Ok. I implemented my suggestions in the patch attached (multiprocessing-tr...@82502-termination2.patch) What do you think? Greg, Maybe we could keep the behavior in termination.patch as an option for map jobs? It is certainly a problem that map jobs

[issue9244] multiprocessing.pool: Worker crashes if result can't be encoded

2010-07-15 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Updated patch with Greg's suggestions. (multiprocessing-tr...@82502-handle_worker_encoding_errors2.patch) -- Added file: http://bugs.python.org/file18014/multiprocessing-tr...@82502-handle_worker_encoding_errors2.patch

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-15 Thread Ask Solem
Changes by Ask Solem a...@opera.com: Removed file: http://bugs.python.org/file18013/multiprocessing-tr...@82502-termination2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-15 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Just some small cosmetic changes to the patch. (added multiprocessing-tr...@82502-termination3.patch) -- Added file: http://bugs.python.org/file18015/multiprocessing-tr...@82502-termination3.patch

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-15 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Really? I could be misremembering, but I believe you deal with the case of the result being unpickleable. I.e. you deal with the put(result) failing, but not the get() in the result handler. Your example is demonstrating the pickle error on put

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-14 Thread Ask Solem
Ask Solem a...@opera.com added the comment: There's one more thing if exitcode is not None: cleaned = True if exitcode != 0 and not worker._termination_requested: abnormal.append((worker.pid, exitcode)) Instead of restarting crashed worker

[issue9244] multiprocessing.pool: Worker crashes if result can't be encoded

2010-07-14 Thread Ask Solem
Ask Solem a...@opera.com added the comment: To be clear, the errback change and the unpickleable result change are actually orthogonal, right? Yes, it could be a separate issue. Jesse, do you think I should I open up a separate issue for this? Why not add an error_callback for map_async

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-14 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Jesse wrote, We can work around the shutdown issue (really, bug 9207) by ignoring the exception such as shutdown.patch does, or passing in references/adding references to the functions those methods need. Or (as Brett suggested) converting them

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-13 Thread Ask Solem
Ask Solem a...@opera.com added the comment: I think I misunderstood the purpose of the patch. This is about handling errors on get(), not on put() like I was working on. So sorry for that confusion. What kind of errors are you having that makes the get() call fail? If the queue is not working

[issue9244] multiprocessing.pool: Pool crashes if worker can't encode result (with patch)

2010-07-13 Thread Ask Solem
New submission from Ask Solem a...@opera.com: If the target function returns an unpickleable value the worker process crashes. This patch tries to safely handle unpickleable errors, while enabling the user to inspect such errors after the fact. In addition a new argument has been added

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-13 Thread Ask Solem
Ask Solem a...@opera.com added the comment: For reference I opened up a new issue for the put() case here: http://bugs.python.org/issue9244 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205

[issue9244] multiprocessing.pool: Worker crashes if result can't be encoded result (with patch)

2010-07-13 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- title: multiprocessing.pool: Pool crashes if worker can't encode result (with patch) - multiprocessing.pool: Worker crashes if result can't be encoded result (with patch) ___ Python tracker rep

[issue9244] multiprocessing.pool: Worker crashes if result can't be encoded

2010-07-13 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- title: multiprocessing.pool: Worker crashes if result can't be encoded result (with patch) - multiprocessing.pool: Worker crashes if result can't be encoded ___ Python tracker rep...@bugs.python.org http

[issue9248] multiprocessing.pool: Proposal: waitforslot

2010-07-13 Thread Ask Solem
New submission from Ask Solem a...@opera.com: This patch adds the `waitforslot` argument to apply_async. If set to `True`, apply_async will not return until there is a worker available to process the job. This is implemented by a semaphore that is released by the result handler whenever

[issue9248] multiprocessing.pool: Proposal: waitforslot

2010-07-13 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- keywords: +patch Added file: http://bugs.python.org/file17985/multiprocessing-tr...@82502-apply-semaphore.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9248

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-12 Thread Ask Solem
Ask Solem a...@opera.com added the comment: termination.patch, in the result handler you've added: while cache and thread._state != TERMINATE and not failed why are you terminating the second pass after finding a failed process? Unpickleable errors and other errors occurring in the worker

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-12 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Unfortunately, if you've lost a worker, you are no longer guaranteed that cache will eventually be empty. In particular, you may have lost a task, which could result in an ApplyResult waiting forever for a _set call. More generally, my chief

[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-09 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9207 ___ ___ Python-bugs-list mailing list

[issue9162] License for multiprocessing files

2010-07-05 Thread Ask Solem
Changes by Ask Solem a...@opera.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9162 ___ ___ Python-bugs-list mailing list

[Ann] Celery 2.0 released

2010-07-02 Thread Ask Solem
: http://groups.google.com/group/celery-users :IRC: #celery at irc.freenode.net. -- {Ask Solem, twitter.com/asksol | github.com/ask }. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

ANN: Celery 1.0 released

2010-02-11 Thread Ask Solem
=== Celery 1.0 has been released! === We're happy to announce the release of Celery 1.0. What is it? === Celery is a task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports

  1   2   >