Uwsgi not sending parallel all(except one) tasks to celery

2020-04-22 Thread sandeep
Hi, Im facing issue like I'm trying to send 30 parallel tasks to the celery 
and trying to get back the result using apply_async() but uwsgi is sending 
only one task to celery and
not giving back the result to python code. Thing is it is working fine with 
flask development server but when i uwsgi and nginx I'm getting stuck. 
Please suggest solution.

After 60 seconds it is getting time out as nginx timeout is 60s.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/b9e0f23c-f6b1-4613-aa7e-2454f5cd592f%40googlegroups.com.


Probable Bug, foreign key to a database view.

2022-03-26 Thread Sandeep Harlalka
class View(models.Model):
field = models.CharField(max_length=4)
class Meta:
 managed=False
  db_table = 'view' #database view

class Child(models.Model):
  view = models.ForeignKey(View, on_delete=models.CASCADE, 
to_field='field', db_constraint=False)

makemigrations on above will have the *view* field of type integer while it 
should be varcher(4)

This is my first post to the forum. Please inform if something is amiss.

Thank You

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/02c505e5-7d6c-4285-a80a-baea5764bf4en%40googlegroups.com.