Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Celery, pyramid_celery, SQLAlchemy, and ZopeTransactionExtension?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thomas Hill  
View profile  
 More options Oct 9 2012, 3:38 am
From: Thomas Hill <tomlikestor...@gmail.com>
Date: Tue, 9 Oct 2012 00:38:59 -0700 (PDT)
Local: Tues, Oct 9 2012 3:38 am
Subject: Celery, pyramid_celery, SQLAlchemy, and ZopeTransactionExtension?

I know it's a really specific set of ingredients, but I was wondering if
anyone has had any luck incorporating their pyramid app with celery, while
using their SQLAlchemy connection that's a scoped_session with the
ZopeTransactionExtension. I'm finding that when I put transaction.commit at
the end of my celery tasks in order to save the changed entities, the
entities are no longer available due to previous tasks having called
transaction.commit and removing the ones in question from the session.

I'd like to not have to create a sort of pyramid_tm for pyramid_celery;
hopefully there's something here that I'm missing.

Has anyone got any suggestions?

-Thomas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Anderson  
View profile  
 More options Oct 9 2012, 9:03 am
From: John Anderson <son...@gmail.com>
Date: Tue, 9 Oct 2012 10:01:03 -0300
Local: Tues, Oct 9 2012 9:01 am
Subject: Re: Celery, pyramid_celery, SQLAlchemy, and ZopeTransactionExtension?
On 10/09, Thomas Hill wrote:

> I know it's a really specific set of ingredients, but I was wondering if
> anyone has had any luck incorporating their pyramid app with celery, while
> using their SQLAlchemy connection that's a scoped_session with the
> ZopeTransactionExtension. I'm finding that when I put transaction.commit at
> the end of my celery tasks in order to save the changed entities, the
> entities are no longer available due to previous tasks having called
> transaction.commit and removing the ones in question from the session.

> I'd like to not have to create a sort of pyramid_tm for pyramid_celery;
> hopefully there's something here that I'm missing.

> Has anyone got any suggestions?

> -Thomas

I've never had any issues using zopetm + pyramid_celery but if you can come up with an example I can probably fix it.

Here is a dummy example that I tried reproducing the problem with but it all works just fine:

https://github.com/sontek/pyramid_celery/tree/master/examples/long_ru...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »