if i have any time after shipping , i'll probably build in transaction 
support for celery and pyramid.

I keep away from tossing ORM objects around the system.  GETS are pretty 
cheap.  

my task arguments are generally:

   int = primary key of ORM object
   dict = "instructions" payload of what to do

for image processing, it's generally

   optimize_images( orm_id , { file_b64=BLOB , selected_resizes=[], } )

celery grabs and uses it's own session, pulling data off the database.  it 
optimizes the image, archives it to S3 and does the same for the resizes. 
then updates the database to reflect all the filesizes and locations.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to