Re: [ZODB-Dev] transaction Attempts class

2012-03-31 Thread Jim Fulton
On Thu, Mar 29, 2012 at 6:59 PM, Chris McDonough chr...@plope.com wrote: On Thu, 2012-03-29 at 07:18 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 6:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 17:06 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 4:37 PM, Chris

Re: [ZODB-Dev] transaction Attempts class

2012-03-31 Thread Chris McDonough
On Sat, 2012-03-31 at 07:49 -0400, Jim Fulton wrote: On Thu, Mar 29, 2012 at 6:59 PM, Chris McDonough chr...@plope.com wrote: On Thu, 2012-03-29 at 07:18 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 6:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 17:06 -0400, Jim

Re: [ZODB-Dev] transaction Attempts class

2012-03-29 Thread Chris McDonough
On Wed, 2012-03-28 at 18:37 -0400, Chris McDonough wrote: On Wed, 2012-03-28 at 17:06 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 4:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 14:21 -0400, Jim Fulton wrote: ... A decorator for running some code in the

Re: [ZODB-Dev] transaction Attempts class

2012-03-29 Thread Jim Fulton
On Thu, Mar 29, 2012 at 2:50 AM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 18:37 -0400, Chris McDonough wrote: On Wed, 2012-03-28 at 17:06 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 4:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 14:21 -0400,

Re: [ZODB-Dev] transaction Attempts class

2012-03-29 Thread Jim Fulton
On Wed, Mar 28, 2012 at 6:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 17:06 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 4:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 14:21 -0400, Jim Fulton wrote: ... A decorator for running some code

Re: [ZODB-Dev] transaction Attempts class

2012-03-29 Thread Marius Gedminas
On Wed, Mar 28, 2012 at 05:06:37PM -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 4:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 14:21 -0400, Jim Fulton wrote: ... A decorator for running some code in the context of a txn and retrying retryable exceptions would be

Re: [ZODB-Dev] transaction Attempts class

2012-03-29 Thread Chris McDonough
On Thu, 2012-03-29 at 07:18 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 6:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 17:06 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 4:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 14:21 -0400, Jim

Re: [ZODB-Dev] transaction Attempts class

2012-03-28 Thread Chris McDonough
On Wed, 2012-03-28 at 08:33 +0200, Thierry Florac wrote: I used this feature just a few days ago. It was in a batch application where conflict errors can frequently occur, and they **seemed** to be handled correctly. I doubt it's working correctly if you have any retryable errors happening

Re: [ZODB-Dev] transaction Attempts class

2012-03-28 Thread Zvezdan Petkovic
On Mar 28, 2012, at 2:47 AM, Chris McDonough wrote: Not sure what you'd say there.. a for loop has to be broken out of for the for loop to not loop? ;-) I believe Thierry is talking about the issue I filed long time ago. https://bugs.launchpad.net/transaction/+bug/724332 The way this

Re: [ZODB-Dev] transaction Attempts class

2012-03-28 Thread Jim Fulton
On Wed, Mar 28, 2012 at 2:11 PM, Zvezdan Petkovic zvez...@computer.org wrote: ... Thanks for chiming in Zvezdan. I was hoping you would. :) We should fix this if we can. If I could do over, I'd have a different API that uses a function rather than a block and was designed to work as a decorator.

Re: [ZODB-Dev] transaction Attempts class

2012-03-28 Thread Chris McDonough
On Wed, 2012-03-28 at 14:21 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 2:11 PM, Zvezdan Petkovic zvez...@computer.org wrote: ... Thanks for chiming in Zvezdan. I was hoping you would. :) We should fix this if we can. If I could do over, I'd have a different API that uses a

Re: [ZODB-Dev] transaction Attempts class

2012-03-28 Thread Jim Fulton
On Wed, Mar 28, 2012 at 4:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 14:21 -0400, Jim Fulton wrote: ... A decorator for running some code in the context of a txn and retrying retryable exceptions would be nice higher level behavior.  I'd be willing to do this work

Re: [ZODB-Dev] transaction Attempts class

2012-03-28 Thread Chris McDonough
On Wed, 2012-03-28 at 17:06 -0400, Jim Fulton wrote: On Wed, Mar 28, 2012 at 4:37 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2012-03-28 at 14:21 -0400, Jim Fulton wrote: ... A decorator for running some code in the context of a txn and retrying retryable exceptions would be nice