How do you synchronize threads in forked processes?
Thanks,
Etam.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/CmmZ4EO_dCYJ.
To post to
Is there a way to run Django (mod_wsgi) in threaded mode?
> I would push the atomic updates to the database or use a queue with a
> single worker. Thread level locking doesn't scale across processes or
> servers.
>
>
--
You received this message because you are subscribed to the Google Groups
Thanks!
Celery provides a queue you could use:
>
> http://ask.github.com/celery/getting-started/introduction.html
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscri
Hi,
how do you synchronize a method (or model field access) in Django?
It doesn't work:
from multiprocessing import Lock
change_status_lock = Lock()
def change_status(self, status):
self.change_status_lock.acquire()
...
self.change_status_lock.release()
Thanks in advance,
els.ForeignKey(Company, related_name =
'company_order', blank = True, null = True)
I think the reason is:
price = models.DecimalField(max_digits = 10, decimal_places = 2)
Thanks in advance,
Etam.
--
You received this message because you are subscribed to the Google Groups
5 matches
Mail list logo