I'm trying to force a db commit on our users admin page. I call obj.save() 
then want to call sync_marketing(obj.id). When sync_marketing pulls the 
User object from the db by the id, it gets the data before the save, not 
the data afterwards.

sync_marketing is ran via celery (apply_async) and we really don't want to 
use countdown to delay it. i need to force the db to commit that save after 
I call save so then when celery pulls from the db, it is the new data. 

I've tried transaction.savepoint and savepoint_commit, no luck. If i 
set_autocommit to true (get_autocommit shows False) I get a "forbidden in 
atomic block" error.

I've tried with and without the atomic decorator. I don't know how to make 
it non-atomic, if that is the right path, etc.

Any suggestions would be appreciated. 
Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6989fb66-ef13-423d-a501-75cf1d092f09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to