Thanks for the suggestion, i will also try django-transaction-hooks.

On Tuesday, October 14, 2014 11:40:21 PM UTC+3, Carl Meyer wrote:
>
> On 10/14/2014 01:58 PM, Spiros Mouzakitis wrote: 
> > What i finally did was to create a post_save signal as usual, and then 
> > in my receiver function i execute the "specific code block" in a thread 
> > (as mentioned 
> > here: 
> http://stackoverflow.com/questions/11899088/is-django-post-save-signal-asynchronous)
>  
>
> > In the thread i also put a time sleep. By the time the thread is resumed 
> > from the time.sleep function, the database has been updated and unlocked 
> > It works, but definitely not elegant :) 
>
> I think using django-transaction-hooks would be both more elegant and 
> more reliable, and not any more complex than that. 
>
> Carl 
>

-- 
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/30c29fbc-cb4f-4fe0-99d0-3adda303ed51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to